0xMiden / 0xMiden/rust-sdk

Implement SQLite-based `MastForestStore`

未关闭
#977 5 条评论 1 个 reaction 已指派 1 人 已被 @tomyrd 认领 在 GitHub 查看
主要语言
Rust
星标
78
派生
129
平均合并
4 天 14 小时
30 天内合并 PR
52

描述

After https://github.com/0xMiden/miden-base/pull/1438, the user of the transaction executor needs to provide MAST forests for the following instances:

- Transaction kernel
- Miden standard library
- Miden protocol library
- Account codes involved in the transaction

The first 3 are included when instantiating a `TransactionMastStore`, which we currently use as the base MAST store on our data store implementation. For the account codes, we need to insert them before actually executing any transaction.

We currently have a sqlite table called `account_codes` that stores codes for any native account, plus any foreign account that was requested as part of a transaction. We could destructure the table and store MAST forests in such a way that our `DataStore` implementation could retrieve required forests from there directly instead of relying on an in-memory `TransactionMastStore` (with an additional in-memory cache).

贡献指南

打开贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。