pub trait LeafHash {
type Hash: Default + Inject + Eject + Ternary;
type Leaf;
// Required method
fn hash_leaf(&self, leaf: &Self::Leaf) -> Self::Hash;
}
Expand description
A trait for a Merkle leaf hash function.
pub trait LeafHash {
type Hash: Default + Inject + Eject + Ternary;
type Leaf;
// Required method
fn hash_leaf(&self, leaf: &Self::Leaf) -> Self::Hash;
}
A trait for a Merkle leaf hash function.