[CI Skip] 0.22.2
This commit is contained in:
+1
-1
@@ -10,5 +10,5 @@
|
||||
"packages": [
|
||||
"packages/*"
|
||||
],
|
||||
"version": "0.22.1"
|
||||
"version": "0.22.2"
|
||||
}
|
||||
|
||||
+1
-1
@@ -1,5 +1,5 @@
|
||||
{
|
||||
"version": "0.22.1",
|
||||
"version": "0.22.2",
|
||||
"private": true,
|
||||
"workspaces": [
|
||||
"packages/*"
|
||||
|
||||
@@ -3,7 +3,6 @@
|
||||
Utility methods for this package are split into groups
|
||||
|
||||
- [blake2](blake2.md) Create blake2b values with specified bitlengths
|
||||
- [kdf](kdf.md) Create Keys for use in encryption (rounds & salt) based on inputs
|
||||
- [keccak](keccak.md) Create Keccak256 values as hex & Uint8Array output
|
||||
- [nacl](nacl.md) Implements [NaCl](http://nacl.cr.yp.to/) secret-key authenticated encryption, public-key authenticated encryption, hashing, and public-key signatures
|
||||
- [random](random.md) Returns a sequence of secure random bytes in a variety of formats
|
||||
|
||||
@@ -1,22 +0,0 @@
|
||||
# kdf
|
||||
|
||||
Create Keys for use in encryption (rounds & salt) based on inputs
|
||||
|
||||
- [kdfAsU8a](#kdfasu8a) Create Uint8Array key based on inputs
|
||||
|
||||
## kdfAsU8a
|
||||
|
||||
Create Uint8Array key based on inputs
|
||||
|
||||
```js
|
||||
kdfAsU8a (secret: Uint8Array | string, rounds?: number, salt?: Uint8Array): { key: Uint8Array, rounds: number, salt: Uint8Array }
|
||||
```
|
||||
|
||||
|
||||
From either a `string` or a `Uint8Array` input, create a key with an optional (or random) salt based on the number of rounds with Blake2. Return return the result key as a `Uint8Array` in addition to the salt used and rounds employed.
|
||||
|
||||
```js
|
||||
import { kdfAsU8a } from '@polkadot/util-crypto';
|
||||
|
||||
kdfAsU8a('123') // => { key: Uint8Array, rounds: number, salt: Uint8Array }
|
||||
```
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@polkadot/util-crypto",
|
||||
"version": "0.22.1",
|
||||
"version": "0.22.2",
|
||||
"description": "A collection of useful crypto utilities for @polkadot",
|
||||
"main": "index.js",
|
||||
"keywords": [
|
||||
@@ -30,7 +30,7 @@
|
||||
},
|
||||
"dependencies": {
|
||||
"@babel/runtime": "^7.0.0-beta.47",
|
||||
"@polkadot/util": "^0.22.1",
|
||||
"@polkadot/util": "^0.22.2",
|
||||
"blakejs": "^1.1.0",
|
||||
"js-sha3": "^0.7.0",
|
||||
"tweetnacl": "^1.0.0",
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@polkadot/util-keyring",
|
||||
"version": "0.22.1",
|
||||
"version": "0.22.2",
|
||||
"description": "Keyring management",
|
||||
"main": "index.js",
|
||||
"engines": {
|
||||
@@ -32,8 +32,8 @@
|
||||
},
|
||||
"dependencies": {
|
||||
"@babel/runtime": "^7.0.0-beta.47",
|
||||
"@polkadot/util": "^0.22.1",
|
||||
"@polkadot/util-crypto": "^0.22.1",
|
||||
"@polkadot/util": "^0.22.2",
|
||||
"@polkadot/util-crypto": "^0.22.2",
|
||||
"bs58": "^4.0.1"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@polkadot/util-rlp",
|
||||
"version": "0.22.1",
|
||||
"version": "0.22.2",
|
||||
"description": "RLP encoding and decoding",
|
||||
"main": "index.js",
|
||||
"keywords": [
|
||||
@@ -30,7 +30,7 @@
|
||||
},
|
||||
"dependencies": {
|
||||
"@babel/runtime": "^7.0.0-beta.47",
|
||||
"@polkadot/util": "^0.22.1"
|
||||
"@polkadot/util": "^0.22.2"
|
||||
},
|
||||
"devDependencies": {
|
||||
"ethereumjs-testing": "^1.0.4"
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@polkadot/util-triehash",
|
||||
"version": "0.22.1",
|
||||
"version": "0.22.2",
|
||||
"description": "Creation of triehash values",
|
||||
"main": "index.js",
|
||||
"keywords": [
|
||||
@@ -30,8 +30,8 @@
|
||||
},
|
||||
"dependencies": {
|
||||
"@babel/runtime": "^7.0.0-beta.47",
|
||||
"@polkadot/util": "^0.22.1",
|
||||
"@polkadot/util-crypto": "^0.22.1",
|
||||
"@polkadot/util-rlp": "^0.22.1"
|
||||
"@polkadot/util": "^0.22.2",
|
||||
"@polkadot/util-crypto": "^0.22.2",
|
||||
"@polkadot/util-rlp": "^0.22.2"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@polkadot/util",
|
||||
"version": "0.22.1",
|
||||
"version": "0.22.2",
|
||||
"description": "A collection of useful utilities for @polkadot",
|
||||
"main": "index.js",
|
||||
"keywords": [
|
||||
|
||||
Reference in New Issue
Block a user