pub trait MerkleMerger {
    type Hash;

    fn merge(
        hashes: [Option<Self::Hash>; 2],
        metadata: MerkleTreeNodeMetadata
    ) -> Option<Self::Hash>; }
Expand description

Trait that merges the hashes of child nodes and calculates the hash of their parent

Required Associated Types

Type that represents the hash value

Required Methods

Merges hashes of child nodes, with metadata of the target node

Implementors