Socket
Socket
Sign inDemoInstall

eccrypto

Package Overview
Dependencies
Maintainers
1
Versions
26
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

eccrypto - npm Package Compare versions

Comparing version 1.0.1 to 1.0.2

2

browser.js

@@ -103,2 +103,4 @@ /**

return new Promise(function(resolve) {
assert(Buffer.isBuffer(privateKeyA), "Bad input");
assert(Buffer.isBuffer(publicKeyB), "Bad input");
assert(privateKeyA.length === 32, "Bad private key");

@@ -105,0 +107,0 @@ assert(publicKeyB.length === 65, "Bad public key");

4

package.json
{
"name": "eccrypto",
"version": "1.0.1",
"version": "1.0.2",
"description": "JavaScript Elliptic curve cryptography library",

@@ -33,3 +33,3 @@ "main": "index.js",

"author": "Kagami Hiiragi",
"license": "CC0",
"license": "CC0-1.0",
"bugs": {

@@ -36,0 +36,0 @@ "url": "https://github.com/bitchan/eccrypto/issues"

@@ -145,2 +145,9 @@ var expect = require("chai").expect;

});
it("should reject promise on bad arguments", function(done) {
eccrypto.derive({}, {}).catch(function(e) {
expect(e.message).to.match(/bad input/i);
done();
});
});
});

@@ -147,0 +154,0 @@

Sorry, the diff of this file is not supported yet

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