ethers.js/utils/hmac.d.ts

7 lines
237 B
TypeScript
Raw Permalink Normal View History

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