merkle_log

Trait Digest

Source
pub trait Digest<N: Node>: Default {
    // Required methods
    fn leaf_digest<R: BufRead>(entry: R) -> N;
    fn node_digest(left: (TreeID, &N), right: (TreeID, &N)) -> N;
}
Expand description

Required Methods§

Source

fn leaf_digest<R: BufRead>(entry: R) -> N

Source

fn node_digest(left: (TreeID, &N), right: (TreeID, &N)) -> N

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§

Source§

impl<D, N> Digest<N> for D
where D: Digest + Default, N: Node + From<Output<D>>,