diff --git a/js/coin.js b/js/coin.js index 8f8b98b..4ca2f7a 100644 --- a/js/coin.js +++ b/js/coin.js @@ -452,7 +452,7 @@ // derive key from index r.derive = function(i){ - i = (i)?:0; + i = (i)?i:0; var blob = (Crypto.util.hexToBytes(this.keys.pubkey)).concat(coinjs.numToBytes(i,4).reverse()); var j = new jsSHA(Crypto.util.bytesToHex(blob), 'HEX'); diff --git a/sha1sum b/sha1sum index 01cfe05..f5b64bc 100644 --- a/sha1sum +++ b/sha1sum @@ -10,7 +10,7 @@ f7c09f2f5a721371e7d478050119f7e2d58e3ef9 ./js/crypto-sha256-hmac.js ad038e1f39646b68ae666324ed4c2882a8c42474 ./js/qrcode.js 64eb4ea5c882f8bce3e1885bf00728455f1c2f4c ./js/ripemd160.js 114089ef2a3feb6d4db4f9cabcb186d7750d5884 ./js/sha512.js -6db735d6bc9fbacd7a874ad3c4dee92b6f8d95ce ./js/coin.js +782ecafc45b2e791451b9d43659c815c76d4816d ./js/coin.js 8e921b2156d232871540e168e1677368b5611dc9 ./js/coinbin.js ae49e56999d82802727455f0ba83b63acd90a22b ./js/jquery-1.9.1.min.js 5f570018ed044eafd464f7e0ab1783b966224055 ./LICENCE