UNPKG

1.03 kBTypeScriptView Raw
1/**
2 * @name base58Validate
3 * @summary Validates a base58 value.
4 * @description
5 * Validates that the supplied value is valid base58, throwing exceptions if not
6 */
7export declare const base58Validate: (value?: unknown, ipfsCompat?: boolean | undefined) => value is string;
8/**
9 * @name base58Decode
10 * @summary Decodes a base58 value.
11 * @description
12 * From the provided input, decode the base58 and return the result as an `Uint8Array`.
13 */
14export declare const base58Decode: (value: string, ipfsCompat?: boolean | undefined) => Uint8Array;
15/**
16* @name base58Encode
17* @summary Creates a base58 value.
18* @description
19* From the provided input, create the base58 and return the result as a string.
20*/
21export declare const base58Encode: (value: import("@polkadot/util/types").U8aLike, ipfsCompat?: boolean | undefined) => string;
22/**
23* @name isBase58
24* @description Checks if the input is in base58, returning true/false
25*/
26export declare const isBase58: (value?: unknown, ipfsCompat?: boolean | undefined) => value is string;