Comparing version 4.0.10 to 5.0.0
13
index.js
@@ -9,3 +9,2 @@ var fs = require('fs') | ||
var ecc = require('./eccjs') | ||
var sodium = require('chloride') | ||
@@ -136,2 +135,4 @@ var ssbref = require('ssb-ref') | ||
var ecc = require('./eccjs') | ||
return keysToJSON(ecc.restore(toBuffer(private)), 'k256') | ||
@@ -207,6 +208,6 @@ } | ||
var curves = { | ||
ed25519 : require('./sodium'), | ||
k256 : ecc //LEGACY | ||
} | ||
var curves = {} | ||
curves.ed25519 = require('./sodium') | ||
try { curves.k256 = require('./eccjs') } | ||
catch (_) {} | ||
@@ -315,1 +316,3 @@ function getCurve(keys) { | ||
} | ||
{ | ||
"name": "ssb-keys", | ||
"description": "keyfile operations for ssb", | ||
"version": "4.0.10", | ||
"version": "5.0.0", | ||
"homepage": "https://github.com/ssbc/ssb-keys", | ||
@@ -14,3 +14,2 @@ "repository": { | ||
"deep-equal": "~0.2.1", | ||
"eccjs": "git://github.com/dominictarr/eccjs.git#586f6d47507184a2efe84684ed0a30605cbc43a5", | ||
"hmac": "~1.0.1", | ||
@@ -22,2 +21,3 @@ "mkdirp": "~0.5.0", | ||
"devDependencies": { | ||
"eccjs": "git://github.com/dominictarr/eccjs.git#586f6d47507184a2efe84684ed0a30605cbc43a5", | ||
"tape": "^3.0.3" | ||
@@ -24,0 +24,0 @@ }, |
Sorry, the diff of this file is not supported yet
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
Git dependency
Supply chain riskContains a dependency which resolves to a remote git URL. Dependencies fetched from git URLs are not immutable can be used to inject untrusted code or reduce the likelihood of a reproducible install.
Found 1 instance in 1 package
16351
7
0
2