@plugnet/util-crypto
Version:
A collection of useful crypto utilities for @plugnet
17 lines (16 loc) • 462 B
TypeScript
import { Keypair } from '../types';
/**
* @name naclSign
* @summary Signs a message using the supplied secretKey
* @description
* Returns message signature of `message`, using the `secretKey`.
* @example
* <BR>
*
* ```javascript
* import { naclSign } from '@plugnet/util-crypto';
*
* naclSign([...], [...]); // => [...]
* ```
*/
export default function naclSign(message: Uint8Array | string, { publicKey, secretKey }: Partial<Keypair>): Uint8Array;