Enum libp2p::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 Code
The maximum size a hash will allocate.
Calculate the hash of some input data. Read more
impl StructuralEq for Code
impl StructuralPartialEq for Code
Auto Trait Implementations
impl RefUnwindSafe for Code
impl UnwindSafe for Code
Blanket Implementations
Mutably borrows from an owned value. Read more