@dfinity/utils
Version:
A collection of utilities and constants for NNS/SNS projects.
15 lines (14 loc) • 426 B
TypeScript
/**
* Encode an Uint8Array to a base32 string.
*
* @param input The input array to encode.
* @returns A Base32 string encoding the input.
*/
export declare const encodeBase32: (input: Uint8Array) => string;
/**
* Decode a base32 string to Uint8Array.
*
* @param input The input string to decode.
* @param input The base32 encoded string to decode.
*/
export declare function decodeBase32(input: string): Uint8Array;