[][src]Trait indy_utils::hash::TreeHash

pub trait TreeHash {
    fn hash_leaf<T>(leaf: &T) -> Result<Vec<u8>, ValidationError>
    where
        T: Hashable
;
fn hash_nodes<T>(left: &T, right: &T) -> Result<Vec<u8>, ValidationError>
    where
        T: Hashable
; }

A trait for producing hashes of merkle tree leaves and nodes

Required methods

fn hash_leaf<T>(leaf: &T) -> Result<Vec<u8>, ValidationError> where
    T: Hashable

fn hash_nodes<T>(left: &T, right: &T) -> Result<Vec<u8>, ValidationError> where
    T: Hashable

Loading content...

Implementors

impl<H: Digest> TreeHash for H[src]

Loading content...