`ValuePath`: make generic over leaf value
Abierto
merkle
- Lenguaje dominante
- Rust
- Estrellas
- 772
- Forks
- 352
- Merge medio
- 1 d 12 h
- PR fusionados (30 d)
- 93
Descripción
[`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)
Guía de contribución
Evaluación
Este issue todavía no se ha evaluado.