UNPKG

453 BTypeScriptView Raw
1/**
2 * @name naclDecrypt
3 * @summary Decrypts a message using the supplied secretKey and nonce
4 * @description
5 * Returns an decrypted message, using the `secret` and `nonce`.
6 * @example
7 * <BR>
8 *
9 * ```javascript
10 * import { naclDecrypt } from '@polkadot/util-crypto';
11 *
12 * naclDecrypt([...], [...], [...]); // => [...]
13 * ```
14 */
15export declare function naclDecrypt(encrypted: Uint8Array, nonce: Uint8Array, secret: Uint8Array): Uint8Array | null;