@polkadot/util-crypto
Version:
A collection of useful crypto utilities for @polkadot
8 lines (7 loc) • 395 B
TypeScript
import type { HexString } from '@polkadot/util/types';
import type { HashType } from './types.js';
/**
* @name secp256k1Recover
* @description Recovers a publicKey from the supplied signature
*/
export declare function secp256k1Recover(msgHash: HexString | Uint8Array | string, signature: HexString | Uint8Array | string, recovery: number, hashType?: HashType, onlyJs?: boolean): Uint8Array;