pub trait Hasher {
    fn hash(data: &[u8]) -> Hash;
}
Expand description

Generic hasher trait.

Implement the function to support custom way of hashing data. The implementation must return a Hash type, so only 32-byte output hashes are supported.

Required Methods§

Hash given arbitrary-length piece of data.

Implementors§