Trait merkle::MerkleDigest [] [src]

pub trait MerkleDigest {
    fn hash_bytes(&mut self, bytes: &Vec<u8>) -> Vec<u8>;
    fn combine_hashes(&mut self, left: &Vec<u8>, right: &Vec<u8>) -> Vec<u8>;
}

The sole purpose of this trait is to extend the standard crypto::digest::Digest with a couple utility functions.

Required Methods

Compute the hash the given byte array

Compute the hash of the concatenation of left and right

Implementors