ethers.js/lib.esm/utils/base58.d.ts

23 lines
873 B
TypeScript
Raw Permalink Normal View History

2022-11-30 15:44:23 -05:00
/**
* The [Base58 Encoding](link-base58) scheme allows a **numeric** value
* to be encoded as a compact string using a radix of 58 using only
* alpha-numeric characters. Confusingly similar characters are omitted
* (i.e. ``"l0O"``).
*
* Note that Base58 encodes a **numeric** value, not arbitrary bytes,
* since any zero-bytes on the left would get removed. To mitigate this
* issue most schemes that use Base58 choose specific high-order values
* to ensure non-zero prefixes.
*
2022-12-02 21:27:06 -05:00
* @_subsection: api/utils:Base58 Encoding [about-base58]
2022-11-30 15:44:23 -05:00
*/
2022-09-05 16:57:11 -04:00
import type { BytesLike } from "./index.js";
/**
2022-11-30 15:44:23 -05:00
* Encode %%value%% as a Base58-encoded string.
2022-09-05 16:57:11 -04:00
*/
export declare function encodeBase58(_value: BytesLike): string;
/**
* Decode the Base58-encoded %%value%%.
*/
2022-11-30 15:44:23 -05:00
export declare function decodeBase58(value: string): bigint;
2022-09-05 16:57:11 -04:00
//# sourceMappingURL=base58.d.ts.map