mirror of
https://github.com/arnaucube/miden-crypto.git
synced 2026-01-12 09:01:29 +01:00
feat: implement additional leaf traversal methods on MerkleStore
This commit is contained in:
@@ -160,6 +160,16 @@ pub struct ValuePath {
|
||||
pub path: MerklePath,
|
||||
}
|
||||
|
||||
impl ValuePath {
|
||||
/// Returns a new [ValuePath] instantiated from the specified value and path.
|
||||
pub fn new(value: RpoDigest, path: Vec<RpoDigest>) -> Self {
|
||||
Self {
|
||||
value,
|
||||
path: MerklePath::new(path),
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/// A container for a [MerklePath] and its [Word] root.
|
||||
///
|
||||
/// This structure does not provide any guarantees regarding the correctness of the path to the
|
||||
|
||||
Reference in New Issue
Block a user