Interface MultibaseEncoder<Prefix>

Multibase encoder for the specific base encoding encodes bytes into multibase of that encoding.

interface MultibaseEncoder<Prefix> {
    name: string;
    prefix: Prefix;
    encode(bytes): Multibase<Prefix>;
}

Type Parameters

  • Prefix extends string

Properties

Methods

Properties

name: string

Name of the encoding.

prefix: Prefix

Prefix character for that base encoding.

Methods

Generated using TypeDoc