Decode a hash from the given multihash.
result
Encode a hash digest along with the specified function code.
Note: the length is derived from the length of the digest itself.
Convert the given base58 encoded string to a multihash.
Convert the given hex encoded string to a multihash.
Checks if a code is part of the app range
Checks whether a multihash code is valid.
Returns a prefix from a valid multihash. Throws an error if it is not valid.
Convert the given multihash to a base58 encoded string.
Convert the given multihash to a hex encoded string.
Check if the given buffer is a valid multihash. Throws an error if it is not valid.
Converts a hash function name into the matching code. If passed a number it will return the number if it's a valid code.