@polkadot/util-crypto
Version:
A collection of useful crypto utilities for @polkadot
8 lines (7 loc) • 352 B
TypeScript
import type { Keypair } from '../types.js';
import type { HashType } from './types.js';
/**
* @name secp256k1Sign
* @description Returns message signature of `message`, using the supplied pair
*/
export declare function secp256k1Sign(message: Uint8Array | string, { secretKey }: Partial<Keypair>, hashType?: HashType, onlyJs?: boolean): Uint8Array;