tendermint::merkle

Function simple_hash_from_byte_vectors

Source
pub fn simple_hash_from_byte_vectors<H>(byte_vecs: &[impl AsRef<[u8]>]) -> Hash
where H: MerkleHash + Default,
Expand description

Compute a simple Merkle root from vectors of arbitrary byte vectors. The leaves of the tree are the bytes of the given byte vectors in the given order.