@polkadot/util-crypto
Advanced tools
Comparing version 0.21.1 to 0.21.2
@@ -8,15 +8,3 @@ "use strict"; | ||
const blake2AsHex128 = require('./asHex128'); | ||
const blake2AsHex256 = require('./asHex256'); | ||
const blake2AsHex512 = require('./asHex512'); | ||
const blake2AsU8a = require('./asU8a'); | ||
const blake2AsU8a128 = require('./asU8a128'); | ||
const blake2AsU8a256 = require('./asU8a256'); | ||
const blake2AsU8a512 = require('./asU8a512'); | ||
/** | ||
@@ -29,9 +17,3 @@ @summary Create blake2b values with specified bitlengths | ||
blake2AsHex, | ||
blake2AsHex128, | ||
blake2AsHex256, | ||
blake2AsHex512, | ||
blake2AsU8a, | ||
blake2AsU8a128, | ||
blake2AsU8a256, | ||
blake2AsU8a512 | ||
blake2AsU8a | ||
}; |
@@ -10,3 +10,3 @@ "use strict"; | ||
const blake2AsU8a256 = require('../blake2/asU8a256'); | ||
const blake2AsU8a = require('../blake2/asU8a'); | ||
@@ -34,3 +34,3 @@ const randomAsU8a = require('../random/asU8a'); | ||
for (let count = 0; count < rounds; count++) { | ||
key = blake2AsU8a256(key, salt); | ||
key = blake2AsU8a(key, 256, salt); | ||
} | ||
@@ -37,0 +37,0 @@ |
@@ -8,3 +8,3 @@ "use strict"; | ||
const blake2AsU8a256 = require('../../blake2/asU8a256'); | ||
const blake2AsU8a = require('../../blake2/asU8a'); | ||
@@ -26,3 +26,3 @@ const fromSeed = require('./fromSeed'); | ||
module.exports = function naclKeypairFromString(value) { | ||
return fromSeed(blake2AsU8a256(u8aFromUtf8(value))); | ||
return fromSeed(blake2AsU8a(u8aFromUtf8(value), 256)); | ||
}; |
{ | ||
"name": "@polkadot/util-crypto", | ||
"version": "0.21.1", | ||
"version": "0.21.2", | ||
"description": "A collection of useful crypto utilities for @polkadot", | ||
@@ -33,3 +33,3 @@ "main": "index.js", | ||
"@babel/runtime": "^7.0.0-beta.47", | ||
"@polkadot/util": "^0.21.1", | ||
"@polkadot/util": "^0.21.2", | ||
"blakejs": "^1.1.0", | ||
@@ -36,0 +36,0 @@ "js-sha3": "^0.7.0", |
@@ -8,11 +8,3 @@ "use strict"; | ||
const xxhashAsHex128 = require('./asHex128'); | ||
const xxhashAsHex256 = require('./asHex256'); | ||
const xxhashAsU8a = require('./asU8a'); | ||
const xxhashAsU8a128 = require('./asU8a128'); | ||
const xxhashAsU8a256 = require('./asU8a256'); | ||
/** | ||
@@ -25,7 +17,3 @@ @summary Create xxhash64 values with specified bitlengths | ||
xxhashAsHex, | ||
xxhashAsHex128, | ||
xxhashAsHex256, | ||
xxhashAsU8a, | ||
xxhashAsU8a128, | ||
xxhashAsU8a256 | ||
xxhashAsU8a | ||
}; |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
70182
95
737
Updated@polkadot/util@^0.21.2