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
fn hash_bytes(&mut self, bytes: &Vec<u8>) -> Vec<u8>
Compute the hash the given byte array
fn combine_hashes(&mut self, left: &Vec<u8>, right: &Vec<u8>) -> Vec<u8>
Compute the hash of the concatenation of left and right
Implementors
impl<D> MerkleDigest for D where D: Digest