pub trait LeafHash: Clone + Send + Sync {
    type Hash: FieldTrait;
    type Leaf: Clone + Send + Sync;

    fn hash_leaf(&self, leaf: &Self::Leaf) -> Result<Self::Hash>;

    fn hash_leaves(&self, leaves: &[Self::Leaf]) -> Result<Vec<Self::Hash>> { ... }
}
Expand description

A trait for a Merkle leaf hash function.

Required Associated Types

Required Methods

Returns the hash of the given leaf node.

Provided Methods

Returns the hash for each leaf node.

Implementations on Foreign Types

Returns the hash of the given leaf node.

Returns the hash of the given leaf node.

Implementors