Comparing version 1.1.1 to 1.1.2
@@ -23,4 +23,3 @@ /** | ||
} else { | ||
console.error(e); | ||
console.error('Reverting to browser version'); | ||
console.info('secp256k1 unavailable, reverting to browser version'); | ||
return (module.exports = require("./browser")); | ||
@@ -146,3 +145,3 @@ } | ||
msg = pad32(msg); | ||
var sig = secp256k1.signSync(msg, privateKey).signature; | ||
var sig = secp256k1.sign(msg, privateKey).signature; | ||
resolve(secp256k1.signatureExport(sig)); | ||
@@ -166,3 +165,3 @@ }); | ||
sig = secp256k1.signatureImport(sig); | ||
if (secp256k1.verifySync(msg, sig, publicKey)) { | ||
if (secp256k1.verify(msg, sig, publicKey)) { | ||
resolve(null); | ||
@@ -169,0 +168,0 @@ } else { |
{ | ||
"name": "eccrypto", | ||
"version": "1.1.1", | ||
"version": "1.1.2", | ||
"description": "JavaScript Elliptic curve cryptography library", | ||
@@ -39,24 +39,24 @@ "main": "index.js", | ||
"devDependencies": { | ||
"browserify": "16.2.3", | ||
"buffer-equal": "0.0.1", | ||
"browserify": "16.5.0", | ||
"buffer-equal": "1.0.0", | ||
"chai": "*", | ||
"jshint": "*", | ||
"karma": "3.1.3", | ||
"karma-browserify": "6.0.0", | ||
"karma-chrome-launcher": "0.2.0", | ||
"karma-cli": "0.1.0", | ||
"karma-firefox-launcher": "0.1.6", | ||
"karma-mocha": "0.2.0", | ||
"karma-mocha-reporter": "1.0.2", | ||
"karma": "4.3.0", | ||
"karma-browserify": "6.1.0", | ||
"karma-chrome-launcher": "3.1.0", | ||
"karma-cli": "2.0.0", | ||
"karma-firefox-launcher": "1.2.0", | ||
"karma-mocha": "1.3.0", | ||
"karma-mocha-reporter": "2.2.5", | ||
"mocha": "*" | ||
}, | ||
"dependencies": { | ||
"acorn": "6.0.0", | ||
"elliptic": "6.0.2", | ||
"es6-promise": "3.0.2", | ||
"nan": "2.11.1" | ||
"acorn": "7.1.0", | ||
"elliptic": "6.5.1", | ||
"es6-promise": "4.2.8", | ||
"nan": "2.14.0" | ||
}, | ||
"optionalDependencies": { | ||
"secp256k1": "2.0.4" | ||
"secp256k1": "3.7.1" | ||
} | ||
} |
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
1
48132
740
+ Addedacorn@7.1.0(transitive)
+ Addedbip66@1.1.5(transitive)
+ Addedbrowserify-aes@1.2.0(transitive)
+ Addedbuffer-xor@1.0.3(transitive)
+ Addedcipher-base@1.0.4(transitive)
+ Addedcreate-hash@1.2.0(transitive)
+ Addedcreate-hmac@1.1.7(transitive)
+ Addeddrbg.js@1.0.1(transitive)
+ Addedelliptic@6.5.1(transitive)
+ Addedes6-promise@4.2.8(transitive)
+ Addedevp_bytestokey@1.0.3(transitive)
+ Addedhash-base@3.1.0(transitive)
+ Addedhmac-drbg@1.0.1(transitive)
+ Addedmd5.js@1.3.5(transitive)
+ Addedminimalistic-crypto-utils@1.0.1(transitive)
+ Addednan@2.14.0(transitive)
+ Addedreadable-stream@3.6.2(transitive)
+ Addedripemd160@2.0.2(transitive)
+ Addedsafe-buffer@5.2.1(transitive)
+ Addedsecp256k1@3.7.1(transitive)
+ Addedsha.js@2.4.11(transitive)
+ Addedstring_decoder@1.3.0(transitive)
+ Addedutil-deprecate@1.0.2(transitive)
- Removedacorn@6.0.0(transitive)
- Removedbluebird@3.7.2(transitive)
- Removedelliptic@6.0.2(transitive)
- Removedes6-promise@3.0.2(transitive)
- Removednan@2.11.1(transitive)
- Removedobject-assign@4.1.1(transitive)
- Removedsecp256k1@2.0.4(transitive)
Updatedacorn@7.1.0
Updatedelliptic@6.5.1
Updatedes6-promise@4.2.8
Updatednan@2.14.0