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.
@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.
@spec transcode(binary(), opts()) :: okresult()
Transcode a multibase encoded string.
parameters
Parameters
data
- Data to transcode.
options
Options
b
- Multibase encoding to use