New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

hypercore-protocol

Package Overview
Dependencies
Maintainers
1
Versions
76
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

hypercore-protocol - npm Package Compare versions

Comparing version 4.3.0 to 4.3.1

9

index.js

@@ -6,3 +6,4 @@ var events = require('events')

var stream = require('readable-stream')
var crypto = require('crypto')
var randomBytes = require('randombytes')
var createHmac = require('create-hmac')
var encryption = require('sodium-encryption')

@@ -65,3 +66,3 @@ var increment = require('increment-buffer')

this._nonce = crypto.randomBytes(24)
this._nonce = randomBytes(24)
this._remoteNonce = null

@@ -153,3 +154,3 @@

this.id = opts.id || crypto.randomBytes(32)
this.id = opts.id || randomBytes(32)
this.remoteId = null

@@ -514,3 +515,3 @@

function discoveryKey (key) {
return crypto.createHmac('sha256', key).update('hypercore').digest()
return createHmac('sha256', key).update('hypercore').digest()
}

@@ -517,0 +518,0 @@

{
"name": "hypercore-protocol",
"version": "4.3.0",
"version": "4.3.1",
"description": "Stream that implements the hypercore protocol",

@@ -9,2 +9,3 @@ "main": "index.js",

"buffer-equals": "^1.0.3",
"create-hmac": "^1.1.4",
"duplexify": "^3.4.3",

@@ -16,2 +17,3 @@ "increment-buffer": "^1.0.0",

"protocol-buffers": "^3.1.6",
"randombytes": "^2.0.3",
"readable-stream": "^2.1.4",

@@ -18,0 +20,0 @@ "sodium-encryption": "^1.1.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