`ValuePath`: make generic over leaf value
Đang mở
merkle
- Ngôn ngữ chính
- Rust
- Star
- 772
- Fork
- 352
- Merge trung bình
- 1 ngày 12 giờ
- Pull request đã merge (30 ngày)
- 93
Mô tả
[`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)
Hướng dẫn đóng góp
Đánh giá
Issue này chưa được đánh giá.