[−]Module libp2p::multihash
Multihash
Implementation of multihash in Rust.
A Multihash
is a structure that contains a hashing algorithm, plus some hashed data.
A MultihashRef
is the same as a Multihash
, except that it doesn't own its data.
Structs
DecodeOwnedError | Error that can happen when decoding some bytes. |
Multihash | Represents a valid multihash. |
MultihashRef | Represents a valid multihash. |
Enums
DecodeError | Error that can happen when decoding some bytes. |
EncodeError | Error that can happen when encoding some bytes into a multihash. |
Hash | List of types currently supported in the multihash spec. |
Functions
encode | Encodes data into a multihash. |
to_hex | Convert bytes to a hex representation |