@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
27 lines • 701 B
text/typescript
//#region src/utils/MultiBaseEncoder.d.ts
export type BaseName = 'base58btc';
export 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
//# sourceMappingURL=MultiBaseEncoder.d.mts.map