Trait TreeHasher

Source
pub trait TreeHasher<V> {
    // Required methods
    fn hash_value(value: &V) -> Fp;
    fn empty_value() -> V;
    fn merge_hash(depth: usize, left: Fp, right: Fp) -> Fp;
}

Required Methods§

Source

fn hash_value(value: &V) -> Fp

Source

fn empty_value() -> V

Source

fn merge_hash(depth: usize, left: Fp, right: Fp) -> Fp

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§