keccak.d.ts 416 B

1234567891011
  1. import { Keccak } from "@noble/hashes/sha3";
  2. import { Hash } from "@noble/hashes/utils";
  3. interface K256 {
  4. (data: Uint8Array): Uint8Array;
  5. create(): Hash<Keccak>;
  6. }
  7. export declare const keccak224: (msg: Uint8Array) => Uint8Array;
  8. export declare const keccak256: K256;
  9. export declare const keccak384: (msg: Uint8Array) => Uint8Array;
  10. export declare const keccak512: (msg: Uint8Array) => Uint8Array;
  11. export {};