bittorrent-dht-store-keypair
Advanced tools
Comparing version 1.0.0 to 1.1.0
@@ -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" |
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
4159
8
63
4
+ Addeddefined@^1.0.0
+ Addeddefined@1.0.1(transitive)