ethers.js/packages/sha2/lib.esm/index.d.ts
2020-01-20 19:43:50 -05:00

10 lines
421 B
TypeScript

import { BytesLike } from '@ethersproject/bytes';
export declare enum SupportedAlgorithm {
sha256 = "sha256",
sha512 = "sha512"
}
export declare function ripemd160(data: BytesLike): string;
export declare function sha256(data: BytesLike): string;
export declare function sha512(data: BytesLike): string;
export declare function computeHmac(algorithm: SupportedAlgorithm, key: BytesLike, data: BytesLike): string;