index.d.ts 997 B

12345678910111213141516171819202122232425
  1. /**
  2. * A fundamental building block of Ethereum is the underlying
  3. * cryptographic primitives.
  4. *
  5. * @_section: api/crypto:Cryptographic Functions [about-crypto]
  6. */
  7. import { computeHmac } from "./hmac.js";
  8. import { keccak256 } from "./keccak.js";
  9. import { ripemd160 } from "./ripemd160.js";
  10. import { pbkdf2 } from "./pbkdf2.js";
  11. import { randomBytes } from "./random.js";
  12. import { scrypt, scryptSync } from "./scrypt.js";
  13. import { sha256, sha512 } from "./sha2.js";
  14. export { computeHmac, randomBytes, keccak256, ripemd160, sha256, sha512, pbkdf2, scrypt, scryptSync };
  15. export { SigningKey } from "./signing-key.js";
  16. export { Signature } from "./signature.js";
  17. /**
  18. * Once called, prevents any future change to the underlying cryptographic
  19. * primitives using the ``.register`` feature for hooks.
  20. */
  21. declare function lock(): void;
  22. export { lock };
  23. export type { ProgressCallback } from "./scrypt.js";
  24. export type { SignatureLike } from "./signature.js";
  25. //# sourceMappingURL=index.d.ts.map