Trait merkle_tree_stream::HashMethods [] [src]

pub trait HashMethods {
    fn leaf(&self, leaf: &PartialNode, roots: &NodeVector) -> Vec<u8>;
fn parent(&self, a: &Node, b: &Node) -> Vec<u8>; }

Functions that need to be implemented for MerkleTreeStream.

Required Methods

Pass data through a hash function.

Pass hashes through a hash function.

Implementors