@subsocial/utils
Version:
JavaScript utils for Subsocial blockchain.
16 lines (15 loc) • 493 B
TypeScript
/**
* @name naclOpen
* @summary Opens a message using the receiver's secretKey and nonce
* @description
* Returns a message sealed by the sender, using the receiver's `secret` and `nonce`.
* @example
* <BR>
*
* ```javascript
* import { naclOpen } from '@subsocial/utils';
*
* naclOpen([...], [...], [...]); // => [...]
* ```
*/
export declare function naclOpen(sealed: Uint8Array, nonce: Uint8Array, senderBoxPublic: Uint8Array, receiverBoxSecret: Uint8Array): Uint8Array | null;