Trait ByteHash
bytehash
pub trait ByteHash: Write { type Digest: AsRef<[u8]> + AsMut<[u8]>; fn fin(self) -> Self::Digest; }
A wrapper trait for cryptographic hash functions
type Digest: AsRef<[u8]> + AsMut<[u8]>
The type that is used for the final hash value
fn fin(self) -> Self::Digest
Consumes the ByteHash and returns a Digest
ByteHash
Digest
impl ByteHash for Blake2b type Digest = [u8; 32];
impl<H> ByteHash for Wrapped<H> where H: Hasher, type Digest = [u8; 8];