Comparing version 1.0.1 to 1.0.2
@@ -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"); |
{ | ||
"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
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
Misc. License Issues
License(Experimental) A package's licensing information has fine-grained problems.
Found 1 instance in 1 package
38634
0
533