Comparing version 0.15.12 to 0.15.13
@@ -465,3 +465,3 @@ var assert = require('assert'); | ||
step: pre.doubles.step, | ||
step: pre.doubles.points.map(negate) | ||
points: pre.doubles.points.map(negate) | ||
} | ||
@@ -468,0 +468,0 @@ }; |
{ | ||
"name": "elliptic", | ||
"version": "0.15.12", | ||
"version": "0.15.13", | ||
"description": "EC cryptography", | ||
@@ -5,0 +5,0 @@ "main": "lib/elliptic.js", |
@@ -100,2 +100,11 @@ var assert = require('assert'); | ||
}); | ||
it('should store precomputed values correctly on negation', function() { | ||
var curve = elliptic.curves.secp256k1.curve; | ||
var p = curve.g.mul('2'); | ||
p.precompute(); | ||
var neg = p.neg(true); | ||
var neg2 = neg.neg(true); | ||
assert(p.eq(neg2)); | ||
}); | ||
}); |
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
135578
3609