MerkleTree

Trait MerkleTree 

Source
pub trait MerkleTree {
    // Required methods
    fn push(&mut self, data: &[u8]) -> Result<()>;
    fn root(&self) -> Result<&[u8]>;
}
Expand description

Merkle Tree representation

Required Methods§

Source

fn push(&mut self, data: &[u8]) -> Result<()>

Add a new leaf to the tree.

Source

fn root(&self) -> Result<&[u8]>

Return the root hash of the tree.

Implementors§