Compare commits

..

No commits in common. "51c53b16ced6bcaf4b78329955d6814579fe4ee9" and "100de8a9ba5671f01594d56a34e8f72730b4fbbd" have entirely different histories.

5 changed files with 8 additions and 15 deletions

View File

@ -1 +1 @@
repo_token: 92KyB69bPowWlcfgXqc24kE5Qt60cCPba
repo_token: lBB0wwrjIH3RkwvTjkv8g5r4aUjcIUreC

View File

@ -1,6 +1,6 @@
language: node_js
node_js:
- '0.10.35'
- '0.10'
notifications:
hipchat:
rooms:

View File

@ -34,7 +34,6 @@ var callspec = {
decodeRawTransaction: '',
dumpPrivKey: '',
encryptWallet: '',
estimateFee: 'int',
getAccount: '',
getAccountAddress: 'str',
getAddedNodeInfo: '',

View File

@ -160,12 +160,6 @@ Key.sign = function(hash, priv, k) {
var Q = Point.multiply(G, k);
var r = Q.x.mod(n);
var s = k.invm(n).mul(e.add(d.mul(r))).mod(n);
//enforce low s
//see BIP 62, "low S values in signatures"
var n_half = bignum.fromBuffer(new Buffer("7FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF5D576E7357A4501DDFE92F46681B20A0", 'hex'), {size: 32});
if (s.cmp(n_half) > 0) {
s = new bignum(n).sub(s);
}
} while (r.cmp(new bignum(0)) <= 0 || s.cmp(new bignum(0)) <= 0);
return {r: r, s: s};

View File

@ -58,16 +58,16 @@
"dependencies": {
"asn1.js": "0.4.1",
"async": "~0.2.10",
"bignum": "^0.9.0",
"binary": "^0.3.0",
"bignum": "=0.6.2",
"bindings": "=1.1.1",
"bn.js": "=1.0.0",
"binary": "^0.3.0",
"bn.js": "=0.15.0",
"brfs": "=1.0.0",
"browserify-buffertools": "git://github.com/maraoz/browserify-buffertools.git",
"bufferput": "git://github.com/bitpay/node-bufferput.git",
"buffers": "=0.1.1",
"buffertools": "=2.1.2",
"elliptic": "=1.0.0",
"browserify-buffertools": "git://github.com/maraoz/browserify-buffertools.git",
"elliptic": "=0.15.12",
"hash.js": "=0.3.2",
"jsrsasign": "=0.0.3",
"preconditions": "^1.0.7",
@ -100,7 +100,7 @@
},
"license": "MIT",
"engines": {
"node": ">=0.10 <0.10.36"
"node": ">=0.10"
},
"devDependencies": {
"browserify": "=3.40.0",