Comparing version 0.8.0 to 0.9.0
@@ -0,1 +1,5 @@ | ||
0.9.0 / 2014-06-12 | ||
------------------ | ||
* broke compatibility, simplified fields on `Curve` class. [Daniel Cousens](https://github.com/cryptocoinjs/ecurve/pull/17) | ||
0.8.0 / 2014-06-10 | ||
@@ -2,0 +6,0 @@ ------------------ |
@@ -12,9 +12,7 @@ var assert = require('assert') | ||
this.b = b | ||
this.G = Point.fromAffine(this, Gx, Gy), | ||
this.n = n | ||
this.h = h | ||
this.infinity = new Point(this, null, null, BigInteger.ZERO) | ||
this.params = { | ||
G: Point.fromAffine(this, Gx, Gy), | ||
h: h, | ||
n: n | ||
} | ||
} | ||
@@ -58,3 +56,3 @@ | ||
// Check nQ = O (where Q is a scalar multiple of G) | ||
var nQ = Q.multiply(this.params.n) | ||
var nQ = Q.multiply(this.n) | ||
assert(this.isInfinity(nQ), 'Point is not a scalar multiple of G') | ||
@@ -61,0 +59,0 @@ |
{ | ||
"name": "ecurve", | ||
"version": "0.8.0", | ||
"version": "0.9.0", | ||
"description": "Elliptic curve cryptography", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
20076
355