UNPKG

395 BTypeScriptView Raw
1import type { HexString } from '@polkadot/util/types';
2import type { HashType } from './types.js';
3/**
4 * @name secp256k1Recover
5 * @description Recovers a publicKey from the supplied signature
6 */
7export declare function secp256k1Recover(msgHash: HexString | Uint8Array | string, signature: HexString | Uint8Array | string, recovery: number, hashType?: HashType, onlyJs?: boolean): Uint8Array;