ethers.js/utils/hmac.d.ts

7 lines
237 B
TypeScript
Raw Normal View History

import { Arrayish } from './bytes';
2018-08-02 01:05:19 +03:00
export declare enum SupportedAlgorithms {
sha256 = "sha256",
sha512 = "sha512"
}
export declare function computeHmac(algorithm: SupportedAlgorithms, key: Arrayish, data: Arrayish): Uint8Array;