simple-handshake
Advanced tools
Comparing version 1.1.2 to 1.2.0
var noise = require('noise-protocol') | ||
var NoiseSymmetricState = require('noise-protocol/symmetric-state') | ||
var NoiseHash = require('noise-protocol/hash') | ||
var assert = require('nanoassert') | ||
@@ -12,2 +14,3 @@ var EMPTY = Buffer.alloc(0) | ||
this.handshakeHash = null | ||
this.onstatickey = opts.onstatickey || function (_, cb) { cb() } | ||
@@ -104,2 +107,7 @@ | ||
if (this.split) { | ||
this.handshakeHash = Buffer.alloc(NoiseHash.HASHLEN) | ||
NoiseSymmetricState.getHandshakeHash(this.state.symmetricState, this.handshakeHash) | ||
} | ||
noise.destroy(this.state) | ||
@@ -106,0 +114,0 @@ |
{ | ||
"name": "simple-handshake", | ||
"version": "1.1.2", | ||
"version": "1.2.0", | ||
"description": "Simple Noise handshake state machine", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -97,2 +97,7 @@ # `simple-handshake` | ||
### `hs.handshakeHash` | ||
Channel binding handshake hash, available after the handshake has completed and | ||
a split has occurred. See the [Noise Specification for details](https://noiseprotocol.org/noise.html#channel-binding) | ||
### `hs.send(payload, cb(err, message))` | ||
@@ -99,0 +104,0 @@ |
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
12716
167
134