MultibaseDecoder
Defined in: node_modules/.pnpm/multiformats@13.4.1/node_modules/multiformats/dist/src/bases/interface.d.ts:60
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.
Type Parameters
Section titled “Type Parameters”Type Parameter |
---|
Prefix extends string |
Methods
Section titled “Methods”decode()
Section titled “decode()”decode(multibase): Uint8Array;
Defined in: node_modules/.pnpm/multiformats@13.4.1/node_modules/multiformats/dist/src/bases/interface.d.ts:65
Decodes multibase string (which must have a multibase prefix added). If prefix does not match
Parameters
Section titled “Parameters”Parameter | Type |
---|---|
multibase | Multibase <Prefix > |