Trait mina_merkle::SparseMerkleTree
source · [−]pub trait SparseMerkleTree {
type MerkleProof: MerkleProof;
fn add_batch(&mut self, proofs: impl IntoIterator<Item = Self::MerkleProof>);
fn add(&mut self, proof: Self::MerkleProof) { ... }
}
Expand description
Trait for implementing sparse binary merkle tree. It is essentially a collection of MerkleProof
Required Associated Types
sourcetype MerkleProof: MerkleProof
type MerkleProof: MerkleProof
Type of the merkle proof
Required Methods
sourcefn add_batch(&mut self, proofs: impl IntoIterator<Item = Self::MerkleProof>)
fn add_batch(&mut self, proofs: impl IntoIterator<Item = Self::MerkleProof>)
Adds a collection of MerkleProof
Provided Methods
sourcefn add(&mut self, proof: Self::MerkleProof)
fn add(&mut self, proof: Self::MerkleProof)
Adds a single MerkleProof