pub trait Hasher { fn hash(data: &[u8]) -> Hash; }
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.
Hash given arbitrary-length piece of data.