2
0
mirror of synced 2025-02-24 12:08:10 +00:00
ethers.js/packages/sha2/thirdparty.d.ts

15 lines
443 B
TypeScript
Raw Normal View History

2019-05-14 18:25:46 -04:00
declare module "hash.js" {
export interface HashFunc {
update(chunk: Uint8Array): HashFunc;
digest(encoding: string): string;
digest(): Uint8Array;
}
export type CreateHashFunc = () => HashFunc;
export function sha256(): HashFunc;
export function sha512(): HashFunc;
export function ripemd160(): HashFunc;
export function hmac(createHashFunc: CreateHashFunc, key: Uint8Array): HashFunc;
}