Trait bridgetree::Hashable
source · pub trait Hashable: Debug {
// Required methods
fn empty_leaf() -> Self;
fn combine(level: Level, a: &Self, b: &Self) -> Self;
// Provided method
fn empty_root(level: Level) -> Self
where Self: Sized { ... }
}Expand description
A trait describing the operations that make a type suitable for use as a leaf or node value in a merkle tree.