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

Type Parameters

  • Prefix extends string

Hierarchy

  • MultibaseEncoder

Properties

Properties

encode: ((bytes) => Multibase<Prefix>)

Type declaration

    • (bytes): Multibase<Prefix>
    • Encodes binary data into multibase string (which will have a prefix added).

      Parameters

      • bytes: Uint8Array

      Returns Multibase<Prefix>

name: string

Name of the encoding.

prefix: Prefix

Prefix character for that base encoding.

Generated using TypeDoc