MultibaseUtils class

Helpers for multibase encoding/decoding used by CID and other multiformats.

package:multibase encodes base16/base32/base64 through a big-integer base-x codec, which is only correct for base58btc. The RFC 4648 bases are implemented here directly so that CID strings interoperate with the rest of the IPFS ecosystem; base58btc still delegates to the package.

Properties

hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited

Static Methods

decode(String input) → Uint8List
Decodes a multibase-encoded string into raw bytes.
encode(Multibase base, Uint8List bytes) → String
Encodes raw bytes using the requested base.
encodeWithName(String name, Uint8List bytes) → String
Encodes raw bytes using the requested base name.