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

pub trait TreeHash {
    pub fn hash_leaf<T>(leaf: &T) -> Result<Vec<u8>, ValidationError>
    where
        T: Hashable
;
pub 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

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

pub 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...