# Functions
Cast casts a buffer onto a multihash, and returns an error if it does not work.
Decode parses multihash bytes into a DecodedMultihash.
Encode a hash digest along with the specified function code.
EncodeName is like Encode() but providing a string name instead of a numeric code.
FromB58String parses a B58-encoded multihash.
FromHexString parses a hex-encoded multihash.
Register is an alias for Register in the core package.
MHFromBytes reads a multihash from the given byte buffer, returning the number of bytes read as well as the multihash.
NewReader wraps an io.Reader with a multihash.Reader.
NewSet creates a new set correctly initialized.
NewWriter wraps an io.Writer with a multihash.Writer.
Register is an alias for Register in the core package.
Sum obtains the cryptographic sum of a given buffer.
SumStream obtains the cryptographic sum of a given stream.
# Constants
constants.
constants.
constants.
constants.
constants.
constants.
Deprecated: use IDENTITY.
constants.
constants.
constants.
constants.
constants.
constants.
Deprecated: use MURMUR3X64_64.
constants.
constants.
constants.
constants.
constants.
constants.
constants.
constants.
constants.
constants.
constants.
constants.
constants.
constants.
# Variables
Codes maps a hash code to it's name.
DefaultLengths maps a multihash indicator code to the output size for that hash, in units of bytes.
errors.
errors.
No description provided by the author
ErrSumNotSupported is returned when the Sum function code is not implemented.
errors.
errors.
errors.
errors.
errors.
Names maps the name of a hash to the code.
# Structs
DecodedMultihash represents a parsed multihash and allows easy access to the different parts of a multihash.
ErrInconsistentLen is returned when a decoded multihash has an inconsistent length.
Set is a set of Multihashes, holding one copy per Multihash.
# Type aliases
Multihash is byte slice with the following form: <hash function code><digest size><hash function output>.