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

Type of the merkle proof

Required Methods

Adds a collection of MerkleProof

Provided Methods

Adds a single MerkleProof

Implementors