2019-05-14 18:48:48 -04:00
|
|
|
import { BytesLike } from '@ethersproject/bytes';
|
2020-01-20 19:43:50 -05:00
|
|
|
export declare enum SupportedAlgorithm {
|
2019-05-14 18:48:48 -04:00
|
|
|
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;
|
2020-01-20 19:43:50 -05:00
|
|
|
export declare function computeHmac(algorithm: SupportedAlgorithm, key: BytesLike, data: BytesLike): string;
|