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