ethers.js/packages/sha2/lib.esm/index.d.ts

10 lines
423 B
TypeScript
Raw Normal View History

2019-05-15 01:48:48 +03:00
import { BytesLike } from '@ethersproject/bytes';
export declare enum SupportedAlgorithms {
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: SupportedAlgorithms, key: BytesLike, data: BytesLike): string;