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