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