pub trait ToTraversalPath<const ARITY: usize> {
// Required method
fn to_traversal_path(&self, height: usize) -> Vec<usize>;
}
Expand description
A trait for Merkle tree index type.
Required Methods§
Sourcefn to_traversal_path(&self, height: usize) -> Vec<usize>
fn to_traversal_path(&self, height: usize) -> Vec<usize>
Convert the given index to a vector of branch indices given tree height and ARITY.