# Functions
No description provided by the author
AddrBytesToAddrInfo tunrs a compressed address into addrInfo struct.
AddrStringToAddrInfo turns a string address of format /p2p/<addr>/<peerid> to AddrInfo struct.
CodecFromString returns a codec code from a string name.
DetectFileType detects the FileType of a file using it's extension.
FormatToken takes a token type and a token value and creates a string ready to send in the http Authorization header.
Libp2pKey gets a libp2p host private key from the keystore if available or generates a new one.
No description provided by the author
MapLoadableKeys returns all the keys of a Tx, given its cid and a loader this only returns the keys for entries where the blocks are available in the blockstore it supports both dagpb and dagcbor nodes.
MapMissingKeys returns keys for values for which the links are not loadable.
MigrateBlocks transfers all blocks from a blockstore to another.
MigrateSelectBlocks transfers blocks from a blockstore to another for a given block selection.
RepoExists checks if we have a datastore directory already created.
RepoPath is akin to IPFS: ~/.pop by default or changed via $POP_PATH.
Stat returns stats about a selected part of DAG given a cid The cid must be registered in the index.
StringsToPeerIDs parses a list of strings into peer IDs.
WalkDAG executes a DAG traversal for a given root and selector and calls a callback function for every block loaded during the traversal an optional callback also returns missing block and forwards the errors.
# Constants
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
KLibp2pHost is the datastore key for storing our libp2p identity private key.
# Variables
Chooser decides which node type to use when decoding IPLD nodes.
HAMTHashOption uses 256 hash to prevent collision attacks.
No description provided by the author