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

MyspaceIPFS.Multibase is where the multibase commands of the IPFS API reside.

Link to this section Summary

Functions

Decode a multibase encoded string.

Encode a string to a multibase encoded string.

List available multibase encodings.

Transcode a multibase encoded string.

Link to this section Functions

@spec decode(binary()) :: okresult()

Decode a multibase encoded string.

parameters

Parameters

data - File to decode.

Link to this function

encode(binary, opts \\ [])

View Source
@spec encode(binary(), opts()) :: okresult()

Encode a string to a multibase encoded string.

parameters

Parameters

data - File to encode.

options

Options

b - Multibase encoding to use.

@spec list(opts()) :: okresult()

List available multibase encodings.

options

Options

prefix - Only list encodings with the given prefix. numeric - Only list encodings with the given numeric code.

Link to this function

transcode(binary, opts \\ [])

View Source
@spec transcode(binary(), opts()) :: okresult()

Transcode a multibase encoded string.

parameters

Parameters

data - Data to transcode.

options

Options

b - Multibase encoding to use