UNPKG

501 BTypeScriptView Raw
1import type { Keypair } from '../types.js';
2/**
3 * @name ed25519Sign
4 * @summary Signs a message using the supplied secretKey
5 * @description
6 * Returns message signature of `message`, using the `secretKey`.
7 * @example
8 * <BR>
9 *
10 * ```javascript
11 * import { ed25519Sign } from '@polkadot/util-crypto';
12 *
13 * ed25519Sign([...], [...]); // => [...]
14 * ```
15 */
16export declare function ed25519Sign(message: string | Uint8Array, { publicKey, secretKey }: Partial<Keypair>, onlyJs?: boolean): Uint8Array;