pub trait MerkleHasher {
    type Item;
    type Hash;

    fn hash(item: &Self::Item, metadata: MerkleTreeNodeMetadata) -> Self::Hash;
}
Expand description

Trait for implementing binary merkle tree hasher

Required Associated Types

Type that MerkleHasher calculates hash from

Type that represents the hash value

Required Methods

Calculates hash from an item and its associated metadata

Implementors