base58.d.ts 873 B

1234567891011121314151617181920212223
  1. /**
  2. * The [Base58 Encoding](link-base58) scheme allows a **numeric** value
  3. * to be encoded as a compact string using a radix of 58 using only
  4. * alpha-numeric characters. Confusingly similar characters are omitted
  5. * (i.e. ``"l0O"``).
  6. *
  7. * Note that Base58 encodes a **numeric** value, not arbitrary bytes,
  8. * since any zero-bytes on the left would get removed. To mitigate this
  9. * issue most schemes that use Base58 choose specific high-order values
  10. * to ensure non-zero prefixes.
  11. *
  12. * @_subsection: api/utils:Base58 Encoding [about-base58]
  13. */
  14. import type { BytesLike } from "./index.js";
  15. /**
  16. * Encode %%value%% as a Base58-encoded string.
  17. */
  18. export declare function encodeBase58(_value: BytesLike): string;
  19. /**
  20. * Decode the Base58-encoded %%value%%.
  21. */
  22. export declare function decodeBase58(value: string): bigint;
  23. //# sourceMappingURL=base58.d.ts.map