libp2p-secio
Advanced tools
Comparing version 0.6.4 to 0.6.5
@@ -0,1 +1,11 @@ | ||
<a name="0.6.5"></a> | ||
## [0.6.5](https://github.com/ipfs/js-libp2p-secio/compare/v0.6.4...v0.6.5) (2017-01-22) | ||
### Bug Fixes | ||
* update to the new crypto.randomBytes method ([73d0b41](https://github.com/ipfs/js-libp2p-secio/commit/73d0b41)) | ||
<a name="0.6.4"></a> | ||
@@ -2,0 +12,0 @@ ## [0.6.4](https://github.com/ipfs/js-libp2p-secio/compare/v0.6.3...v0.6.4) (2016-12-13) |
{ | ||
"name": "libp2p-secio", | ||
"version": "0.6.4", | ||
"version": "0.6.5", | ||
"description": "Secio implementation in JavaScript", | ||
@@ -28,9 +28,9 @@ "main": "src/index.js", | ||
"dependencies": { | ||
"async": "^2.1.2", | ||
"debug": "^2.3.2", | ||
"async": "^2.1.4", | ||
"debug": "^2.6.0", | ||
"interface-connection": "^0.3.0", | ||
"libp2p-crypto": "^0.7.2", | ||
"libp2p-crypto": "^0.7.6", | ||
"multihashing-async": "^0.3.0", | ||
"peer-id": "^0.8.0", | ||
"protocol-buffers": "^3.1.8", | ||
"peer-id": "^0.8.1", | ||
"protocol-buffers": "^3.2.1", | ||
"pull-defer": "^0.2.2", | ||
@@ -42,9 +42,9 @@ "pull-handshake": "^1.1.4", | ||
"devDependencies": { | ||
"aegir": "^9.2.1", | ||
"benchmark": "^2.1.2", | ||
"aegir": "^9.3.3", | ||
"benchmark": "^2.1.3", | ||
"chai": "^3.5.0", | ||
"gulp": "^3.9.1", | ||
"libp2p-websockets": "^0.9.1", | ||
"multistream-select": "^0.13.0", | ||
"pre-commit": "^1.2.0", | ||
"multistream-select": "^0.13.2", | ||
"pre-commit": "^1.2.2", | ||
"pull-goodbye": "0.0.1", | ||
@@ -51,0 +51,0 @@ "pull-pair": "^1.1.0" |
@@ -21,3 +21,3 @@ 'use strict' | ||
state.proposal.out = { | ||
rand: support.randomBytes(nonceSize), | ||
rand: crypto.randomBytes(nonceSize), | ||
pubkey: state.key.local.public.bytes, | ||
@@ -24,0 +24,0 @@ exchanges: support.exchanges.join(','), |
@@ -79,6 +79,2 @@ 'use strict' | ||
exports.randomBytes = (nonceSize) => { | ||
return Buffer.from(crypto.webcrypto.getRandomValues(new Uint8Array(nonceSize))) | ||
} | ||
exports.selectBest = (local, remote, cb) => { | ||
@@ -85,0 +81,0 @@ exports.digest(Buffer.concat([ |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
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
1993282
24375
Updatedasync@^2.1.4
Updateddebug@^2.6.0
Updatedlibp2p-crypto@^0.7.6
Updatedpeer-id@^0.8.1
Updatedprotocol-buffers@^3.2.1