Trait TreeVersion

Source
pub trait TreeVersion {
    type Account: Debug + Clone;
    type TokenId: Debug + Clone + Hash + PartialEq;

    // Required methods
    fn hash_node(depth: usize, left: Fp, right: Fp) -> Fp;
    fn hash_leaf(leaf: &Self::Account) -> Fp;
    fn empty_hash_at_height(height: usize) -> Fp;
}

Required Associated Types§

Required Methods§

Source

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

Source

fn hash_leaf(leaf: &Self::Account) -> Fp

Source

fn empty_hash_at_height(height: usize) -> 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§