[−][src]Trait multihash::MultihashCode
Trait to compute the digest of a multihash code.
Associated Types
type Multihash: MultihashDigest<Self>
Multihash type.
Required methods
fn size(&self) -> u8
Returns the size of the digest.
fn digest(&self, input: &[u8]) -> Self::Multihash
Returns the hash of the input.