Interface UnibaseDecoder<Prefix>

Interface implemented by multibase decoder, that takes multibase strings to bytes. It may support single encoding like base32 or multiple encodings like base32, base58btc, base64. If passed multibase is incompatible it will throw an exception.

interface UnibaseDecoder<Prefix> {
    decoders?: null;
    prefix: Prefix;
    decode(multibase): Uint8Array;
}

Type Parameters

  • Prefix extends string

Hierarchy (view full)

Properties

Methods

Properties

decoders?: null
prefix: Prefix

Methods

Generated using TypeDoc