View Source MyspaceIPFS.Cid (Myspace IPFS v0.1.0)

MyspaceIPFS.Cid is where the cid commands of the IPFS API reside.

Link to this section Summary

Functions

Convert to base32 CID version 1.

List available multibase encodings.

List available CID codecs.

Format and convert a CID in various useful ways.

List available multihashes.

Link to this section Functions

@spec base32(binary()) :: okmapped()

Convert to base32 CID version 1.

parameters

Parameters

https://docs.ipfs.tech/reference/kubo/rpc/#api-v0-cid-base32 cid - The CID to convert to base32.

@spec bases(opts()) :: okmapped()

List available multibase encodings.

options

Options

https://docs.ipfs.tech/reference/kubo/rpc/#api-v0-cid-bases

prefix <bool> - Show multibase prefix. Default: false. numeric <bool> - Show multibase numeric code. Default: false.

@spec codecs(opts()) :: okmapped()

List available CID codecs.

options

Options

https://docs.ipfs.tech/reference/kubo/rpc/#api-v0-cid-codecs

numeric <bool> - Show codec numeric code. supported <bool> - Show only supported codecs.

@spec format(cid(), opts()) :: okmapped()

Format and convert a CID in various useful ways.

parameters

Parameters

cid - The CID to format and convert.

options

Options

https://docs.ipfs.tech/reference/kubo/rpc/#api-v0-cid-format f <string> - printf style format string. Default: %s. v <string> - CID version. b <string> - Multibase to display CID in. mc <string> - Multicodec.

@spec hashes(opts()) :: okmapped()

List available multihashes.

options

Options

https://docs.ipfs.tech/reference/kubo/rpc/#api-v0-cid-hashes

numeric <bool> - Show hash numeric code. supported <bool> - Show only supported hashes.