Trait light_hasher::Hasher
source · pub trait Hasher {
// Required methods
fn hash(val: &[u8]) -> Result<Hash, HasherError>;
fn hashv(vals: &[&[u8]]) -> Result<Hash, HasherError>;
fn zero_bytes() -> ZeroBytes;
fn zero_indexed_leaf() -> [u8; 32];
}
Required Methods§
fn hash(val: &[u8]) -> Result<Hash, HasherError>
fn hashv(vals: &[&[u8]]) -> Result<Hash, HasherError>
fn zero_bytes() -> ZeroBytes
fn zero_indexed_leaf() -> [u8; 32]
Object Safety§
This trait is not object safe.