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

bittorrent-dht-store-keypair

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

bittorrent-dht-store-keypair - npm Package Compare versions

Comparing version 1.0.0 to 1.1.0

example/load.js

4

index.js

@@ -12,4 +12,4 @@ var EC = require('elliptic').ec

if (!opts) opts = {}
this.kp = opts.k
? new EC('ed25519').keyFromPrivate(tobuf(opts.k))
this.kp = opts.secretKey
? new EC('ed25519').keyFromPrivate(tobuf(opts.secretKey))
: new EC('ed25519').genKeyPair()

@@ -16,0 +16,0 @@ this.k = bpad(32, Buffer(this.kp.getPublic().x.toArray()))

{
"name": "bittorrent-dht-store-keypair",
"version": "1.0.0",
"version": "1.1.0",
"description": "create and load signing keys for bittorrent-dht dht_store",

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

"bencode": "~0.6.0",
"defined": "^1.0.0",
"elliptic": "^3.1.0",

@@ -14,0 +15,0 @@ "sha.js": "^2.4.2"

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