Interface MultibaseEncoder<Prefix>

Encodes bytes into multibase of a specific encoding.

interface MultibaseEncoder {
    prefix: Prefix;
    encode(bytes): string;
}

Type Parameters

  • Prefix extends string

Hierarchy

  • Encoder<Uint8Array, string>
    • MultibaseEncoder

Properties

Methods

Properties

prefix: Prefix

Prefix character for that base encoding.

Methods

Generated using TypeDoc