Trait tendermint::merkle::MerkleHash
source · pub trait MerkleHash {
// Required methods
fn empty_hash(&mut self) -> Hash;
fn leaf_hash(&mut self, bytes: &[u8]) -> Hash;
fn inner_hash(&mut self, left: Hash, right: Hash) -> Hash;
// Provided method
fn hash_byte_vectors(&mut self, byte_vecs: &[impl AsRef<[u8]>]) -> Hash { ... }
}
Expand description
Implementation of Merkle tree hashing for Tendermint.
Required Methods§
fn empty_hash(&mut self) -> Hash
fn leaf_hash(&mut self, bytes: &[u8]) -> Hash
fn inner_hash(&mut self, left: Hash, right: Hash) -> Hash
Provided Methods§
fn hash_byte_vectors(&mut self, byte_vecs: &[impl AsRef<[u8]>]) -> Hash
Object Safety§
This trait is not object safe.