fixed a timelocked address bug as reported on issue 60
This commit is contained in:
parent
44e6f5c639
commit
3c1e957519
2 changed files with 4 additions and 4 deletions
|
@ -148,7 +148,7 @@
|
|||
}
|
||||
|
||||
var s = coinjs.script();
|
||||
s.writeBytes(coinjs.numToByteArray(checklocktimeverify).reverse());
|
||||
s.writeBytes(coinjs.numToByteArray(checklocktimeverify));
|
||||
s.writeOp(177);//OP_CHECKLOCKTIMEVERIFY
|
||||
s.writeOp(117);//OP_DROP
|
||||
s.writeBytes(Crypto.util.hexToBytes(pubkey));
|
||||
|
@ -687,7 +687,7 @@
|
|||
// ^ <unlocktime> OP_CHECKLOCKTIMEVERIFY OP_DROP <pubkey> OP_CHECKSIG ^
|
||||
r = {}
|
||||
r.pubkey = Crypto.util.bytesToHex(s.chunks[3]);
|
||||
r.checklocktimeverify = coinjs.bytesToNum(s.chunks[0].slice().reverse());
|
||||
r.checklocktimeverify = coinjs.bytesToNum(s.chunks[0].slice());
|
||||
r.address = coinjs.simpleHodlAddress(r.pubkey, r.checklocktimeverify).address;
|
||||
r.type = "hodl__";
|
||||
}
|
||||
|
|
4
sha1sum
4
sha1sum
|
@ -1,9 +1,9 @@
|
|||
---- Version 1.2 2016.09.05 ----
|
||||
---- Version 1.2 2016.09.06 ----
|
||||
77e4519962e2f6a9fc93342137dbb31c33b76b04 ./js/aes.js
|
||||
3a09a8fc0cfe828b57fc798d668234d0490ee1a6 ./js/bootstrap-datetimepicker.min.js
|
||||
253711c6d825de55a8360552573be950da180614 ./js/bootstrap.min.js
|
||||
4d5125c65432bfebfd1fa2d0dca0af1d037bc7e9 ./js/coinbin.js
|
||||
b93555d2e150a10adb02144d30230966fe03bbee ./js/coin.js
|
||||
b9af8c7b34429b0513972107d9b22b84e9d4fc8a ./js/coin.js
|
||||
988565bc2cb402d63ed5c5fd7ff47c4278efc2c5 ./js/collapse.js
|
||||
9ba5ede3d7f9d4c8fd623395f196adfdcf7e970f ./js/crypto-min.js
|
||||
f7c09f2f5a721371e7d478050119f7e2d58e3ef9 ./js/crypto-sha256-hmac.js
|
||||
|
|
Loading…
Reference in a new issue