ethers.js/utils/hmac.d.ts

4 lines
211 B
TypeScript

import { Arrayish } from './bytes';
export declare type SupportedAlgorithms = 'sha256' | 'sha512';
export declare function computeHmac(algorithm: SupportedAlgorithms, key: Arrayish, data: Arrayish): Uint8Array;