@polkadot/util-crypto
Version:
A collection of useful crypto utilities for @polkadot
8 lines (7 loc) • 426 B
TypeScript
import type { HexString } from '@polkadot/util/types';
import type { HashType } from './types.js';
/**
* @name secp256k1Verify
* @description Verifies the signature of `message`, using the supplied pair
*/
export declare function secp256k1Verify(msgHash: HexString | Uint8Array | string, signature: HexString | Uint8Array | string, address: HexString | Uint8Array | string, hashType?: HashType, onlyJs?: boolean): boolean;