[CI Skip] 0.19.6

This commit is contained in:
Travis CI
2018-05-08 10:49:11 +00:00
parent f8e07bada9
commit dc6fb357f6
9 changed files with 17 additions and 17 deletions
+3 -3
View File
@@ -12,11 +12,11 @@ Implements [NaCl](http://nacl.cr.yp.to/) secret-key authenticated encryption, pu
Decrypts a message using the supplied secretKey and nonce
```js
naclDecrypt (message: Uint8Array, secretKey: Uint8Array, nonce: Uint8Array): Uint8Array
naclDecrypt (message: Uint8Array, nonce: Uint8Array, secret: Uint8Array): Uint8Array
```
Returns an decrypted message, using the `secretKey` and `nonce`.
Returns an decrypted message, using the `secret` and `nonce`.
```js
import { naclDecrypt } from '@polkadot/util-crypto';
@@ -29,7 +29,7 @@ naclDecrypt([...], [...], [...]) // => [...]
Encrypts a message using the supplied secretKey and nonce
```js
naclEncrypt (message: Uint8Array, secretKey: Uint8Array, nonce?: Uint8Array): { encrypted: Uint8Array, nonce: Uint8Array }
naclEncrypt (message: Uint8Array, secret: Uint8Array, nonce?: Uint8Array): { encrypted: Uint8Array, nonce: Uint8Array }
```