0xMiden / 0xMiden/miden-vm

`ValuePath`: make generic over leaf value

未关闭
#3,483 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
merkle
主要语言
Rust
星标
772
派生
352
平均合并
1 天 12 小时
30 天内合并 PR
93

描述

[`ValuePath`](https://github.com/0xPolygonMiden/crypto/blob/c86bdc6d515046513a86ec331da5a0f77fd29cf2/src/merkle/path.rs#L166-L171) currently assumes that only one `Value` is stored at a Merkle Tree's leaf. This is not always true - see `TieredSmt` and `Smt`.

We should

- Rename to `LeafPath`
- Make `LeafPath` generic over the leaf type
- Use `LeafPath` in `SparseMerkleTree::Opening`'s [trait bound](https://github.com/0xPolygonMiden/crypto/blob/88797c393777c220089378a1b183c006effd98ae/src/merkle/smt/mod.rs#L55)

贡献指南

打开贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

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