# Functions
Cast takes a Cid data slice, parses it and returns a Cid.
No description provided by the author
CidFromReader reads a precise number of bytes for a CID from a given reader.
Decode parses a Cid-encoded string and returns a Cid object.
Extract the encoding from a Cid.
NewCidV0 returns a Cid-wrapped multihash.
NewCidV1 returns a new Cid using the given multicodec-packed content type.
NewPrefixV0 returns a CIDv0 prefix with the specified multihash type.
NewPrefixV1 returns a CIDv1 prefix with the specified codec and multihash type.
NewSet initializes and returns a new Set.
Parse is a short-hand function to perform Decode, Cast etc..
PrefixFromBytes parses a Prefix-byte representation onto a Prefix.
# Constants
These are multicodec-packed content types.
These are multicodec-packed content types.
These are multicodec-packed content types.
These are multicodec-packed content types.
These are multicodec-packed content types.
These are multicodec-packed content types.
These are multicodec-packed content types.
These are multicodec-packed content types.
These are multicodec-packed content types.
These are multicodec-packed content types.
These are multicodec-packed content types.
These are multicodec-packed content types.
These are multicodec-packed content types.
These are multicodec-packed content types.
These are multicodec-packed content types.
These are multicodec-packed content types.
These are multicodec-packed content types.
These are multicodec-packed content types.
These are multicodec-packed content types.
These are multicodec-packed content types.
These are multicodec-packed content types.
These are multicodec-packed content types.
These are multicodec-packed content types.
UnsupportedVersionString just holds an error message.
These are multicodec-packed content types.
These are multicodec-packed content types.
# Variables
Codecs maps the name of a codec to its type.
CodecToStr maps the numeric codec to its name.
ErrCidTooShort means that the cid passed to decode was not long enough to be a valid Cid.
ErrInvalidEncoding means that selected encoding is not supported by this Cid version.
Undef can be used to represent a nil or undefined Cid, using Cid{} directly is also acceptable.
# Structs
Cid represents a self-describing content addressed identifier.
Prefix represents all the metadata of a Cid, that is, the Version, the Codec, the Multihash type and the Multihash length.
Set is a implementation of a set of Cids, that is, a structure to which holds a single copy of every Cids that is added to it.
No description provided by the author
No description provided by the author
# Interfaces
No description provided by the author