UNPKG

@credo-ts/core

Version:

<p align="center"> <br /> <img alt="Credo Logo" src="https://github.com/openwallet-foundation/credo-ts/blob/c7886cb8377ceb8ee4efe8d264211e561a75072d/images/credo-logo.png" height="250px" /> </p> <h1 align="center"><b>Credo - Core</b></h1

28 lines • 726 B
//#region src/utils/MultiBaseEncoder.d.ts type BaseName = 'base58btc'; declare class MultiBaseEncoder { /** * * Encodes a buffer into a multibase * * @param buffer the buffer that has to be encoded * @param baseName the encoding algorithm */ static encode(buffer: Uint8Array, baseName: BaseName): string; /** * * Decodes a multibase into a Uint8Array * * @param data the multibase that has to be decoded * * @returns decoded data and the multi base name */ static decode(data: string): { data: Uint8Array; baseName: string; }; static isValid(data: string): boolean; } //#endregion export { BaseName, MultiBaseEncoder }; //# sourceMappingURL=MultiBaseEncoder.d.mts.map