Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

simple-handshake

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

simple-handshake - npm Package Compare versions

Comparing version 1.1.2 to 1.2.0

8

index.js
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 @@

2

package.json
{
"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 @@

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc