Class represents both BaseEncoder and MultibaseEncoder meaning it can be used to encode to multibase or base encode without multibase prefix.

Implements

Implements

Type Parameters

  • Base extends string

  • Prefix extends string

Hierarchy

  • Encoder

Implements

Constructors

Properties

Methods

Constructors

  • Type Parameters

    • Base extends string

    • Prefix extends string

    Parameters

    • name: Base
    • prefix: Prefix
    • baseEncode: ((bytes) => string)
        • (bytes): string
        • Parameters

          • bytes: Uint8Array

          Returns string

    Returns Encoder<Base, Prefix>

Properties

baseEncode: ((bytes) => string)

Type declaration

    • (bytes): string
    • Parameters

      • bytes: Uint8Array

      Returns string

name: Base

Name of the encoding.

prefix: Prefix

Prefix character for that base encoding.

Methods

  • Parameters

    • bytes: Uint8Array

    Returns Multibase<Prefix>

Generated using TypeDoc