Comparing version 0.6.0 to 0.7.0
@@ -0,1 +1,6 @@ | ||
0.7.0 / 2014-06-11 | ||
------------------ | ||
* updated `"ecurve": "^0.6.0"` to `"ecurve": "^0.8.0"` | ||
* removed `terst` for `assert` | ||
0.6.0 / 2014-06-03 | ||
@@ -2,0 +7,0 @@ ------------------ |
var crypto = require('crypto') | ||
var ecurve = require('ecurve') | ||
var ECPointFp = ecurve.ECPointFp | ||
var ecparams = ecurve.getECParams('secp256k1') | ||
var ecparams = ecurve.getCurveByName('secp256k1') | ||
var BigInteger = require('bigi') | ||
module.exports = ECKey | ||
function ECKey (bytes, compressed) { | ||
@@ -94,3 +90,3 @@ if (!(this instanceof ECKey)) return new ECKey(bytes, compressed) | ||
if (!this._publicPoint) { | ||
this._publicPoint = ecparams.g.multiply(this.keyBigInteger) | ||
this._publicPoint = ecparams.params.G.multiply(this.keyBigInteger) | ||
} | ||
@@ -116,3 +112,2 @@ return this._publicPoint | ||
/************ | ||
@@ -126,9 +121,3 @@ * METHODS | ||
module.exports = ECKey | ||
{ | ||
"name": "eckey", | ||
"version": "0.6.0", | ||
"version": "0.7.0", | ||
"description": "Handle private key and public keys associated with elliptic curve cryptography. Used with crypto currencies such as Bitcoin, Litecoin, Dogecoin, etc. Works in both Node.js and the browser.", | ||
@@ -18,3 +18,2 @@ "keywords": [ | ||
"mocha": "^1.20.0", | ||
"terst": "^0.2.0", | ||
"secure-random": "^1.0.0", | ||
@@ -34,3 +33,3 @@ "mochify": "^0.9.3", | ||
"dependencies": { | ||
"ecurve": "^0.6.0", | ||
"ecurve": "^0.8.0", | ||
"bigi": "^1.1.0" | ||
@@ -49,2 +48,3 @@ }, | ||
"files": "test/*.js", | ||
"harness": "mocha", | ||
"browsers": [ | ||
@@ -51,0 +51,0 @@ "firefox/latest", |
@@ -13,4 +13,4 @@ eckey | ||
Official documenation: | ||
Official documentation: | ||
http://cryptocoinjs.com/modules/currency/eckey/ |
8574
8
99
+ Addedecurve@0.8.0(transitive)
- Removedecurve@0.6.0(transitive)
Updatedecurve@^0.8.0