[CI Skip] 0.15.8

This commit is contained in:
Travis CI
2018-02-21 11:47:39 +00:00
parent 15c4733170
commit e383745892
7 changed files with 10 additions and 64 deletions
+1 -1
View File
@@ -10,5 +10,5 @@
"packages": [
"packages/*"
],
"version": "0.15.7"
"version": "0.15.8"
}
+1 -1
View File
@@ -1,5 +1,5 @@
{
"version": "0.15.7",
"version": "0.15.8",
"private": true,
"workspaces": [
"packages/*"
-54
View File
@@ -2,63 +2,9 @@
Implements [NaCl](http://nacl.cr.yp.to/) secret-key authenticated encryption, public-key authenticated encryption, hashing, and public-key signatures
- [naclKeypair](#naclkeypair) Creates a new public/secret keypair.
- [naclKeypairFromSecret](#naclkeypairfromsecret) Creates a new public/secret keypair from a secret.
- [naclKeypairFromSeed](#naclkeypairfromseed) Creates a new public/secret keypair from a seed.
- [naclSign](#naclsign) Signs a message using the supplied secretKey
- [naclSign](#naclsign) Verifies the signature on the supplied message.
## naclKeypair
Creates a new public/secret keypair.
```js
naclKeypair (): { secretKey: Uint8Array, publicKey: Uint8Array }
```
Returns a new generate object containing a `publicKey` & `secretKey`.
```js
import { naclKeypair } from '@polkadot/util-crypto';
naclKeypair() // => { secretKey: [...], publicKey: [...] }
```
## naclKeypairFromSecret
Creates a new public/secret keypair from a secret.
```js
naclKeypairFromSecret (secret: Uint8Array | string): { secretKey: Uint8Array, publicKey: Uint8Array }
```
Returns a object containing a `publicKey` & `secretKey` generated from the supplied secret.
```js
import { naclKeypairFromSecret } from '@polkadot/util-crypto';
naclKeypairFromSecret(...) // => { secretKey: [...], publicKey: [...] }
```
## naclKeypairFromSeed
Creates a new public/secret keypair from a seed.
```js
naclKeypairFromSeed (seed: Uint8Array | string): { secretKey: Uint8Array, publicKey: Uint8Array }
```
Returns a object containing a `publicKey` & `secretKey` generated from the supplied seed. Seed can be a `Uint8Array`, a hex string or a string of bytes.
```js
import { naclKeypairFromSeed } from '@polkadot/util-crypto';
naclKeypairFromSeed(...) // => { secretKey: [...], publicKey: [...] }
```
## naclSign
Signs a message using the supplied secretKey
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "@polkadot/util-crypto",
"version": "0.15.7",
"version": "0.15.8",
"description": "A collection of useful crypto utilities for @polkadot",
"main": "index.js",
"keywords": [
+2 -2
View File
@@ -1,6 +1,6 @@
{
"name": "@polkadot/util-rlp",
"version": "0.15.7",
"version": "0.15.8",
"description": "RLP encoding and decoding",
"main": "index.js",
"keywords": [
@@ -29,7 +29,7 @@
"test": "echo \"Tests only available from root wrapper\""
},
"dependencies": {
"@polkadot/util": "^0.15.7",
"@polkadot/util": "^0.15.8",
"babel-runtime": "^6.26.0"
},
"devDependencies": {
+4 -4
View File
@@ -1,6 +1,6 @@
{
"name": "@polkadot/util-triehash",
"version": "0.15.7",
"version": "0.15.8",
"description": "Creation of triehash values",
"main": "index.js",
"keywords": [
@@ -29,9 +29,9 @@
"test": "echo \"Tests only available from root wrapper\""
},
"dependencies": {
"@polkadot/util": "^0.15.7",
"@polkadot/util-crypto": "^0.15.7",
"@polkadot/util-rlp": "^0.15.7",
"@polkadot/util": "^0.15.8",
"@polkadot/util-crypto": "^0.15.8",
"@polkadot/util-rlp": "^0.15.8",
"babel-runtime": "^6.26.0"
}
}
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "@polkadot/util",
"version": "0.15.7",
"version": "0.15.8",
"description": "A collection of useful utilities for @polkadot",
"main": "index.js",
"keywords": [