`ValuePath`: make generic over leaf value
オープン
merkle
- 主要言語
- Rust
- スター
- 772
- フォーク
- 352
- 平均マージ
- 1日 12時間
- マージ済み PR(30日)
- 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 はまだ評価されていません。