UNPKG

498 BTypeScriptView Raw
1/**
2 * @name naclOpen
3 * @summary Opens a message using the receiver's secretKey and nonce
4 * @description
5 * Returns a message sealed by the sender, using the receiver's `secret` and `nonce`.
6 * @example
7 * <BR>
8 *
9 * ```javascript
10 * import { naclOpen } from '@polkadot/util-crypto';
11 *
12 * naclOpen([...], [...], [...]); // => [...]
13 * ```
14 */
15export declare function naclOpen(sealed: Uint8Array, nonce: Uint8Array, senderBoxPublic: Uint8Array, receiverBoxSecret: Uint8Array): Uint8Array | null;