Enum libp2p::core::multiaddr::multihash::Code [−]
pub enum Code {
Sha2_256,
Sha2_512,
Identity,
}Expand description
Default (cryptographically secure) Multihash implementation.
This is a default set of hashing algorithms. Usually applications would use their own subset of
algorithms. See the Multihash derive for more information.
Variants
SHA-256 (32-byte hash size)
SHA-512 (64-byte hash size)
Identity hash (max. 64 bytes)
Trait Implementations
impl MultihashDigest for Code
impl MultihashDigest for CodeThe maximum size a hash will allocate.
Calculate the hash of some input data. Read more
impl StructuralEq for Codeimpl StructuralPartialEq for CodeAuto Trait Implementations
impl RefUnwindSafe for Codeimpl UnwindSafe for CodeBlanket Implementations
Mutably borrows from an owned value. Read more
pub fn vzip(self) -> V