Christopher Jeffrey
|
07a1322749
|
inspect methods. better data parsing. expose modules.
|
2015-12-22 19:27:36 -08:00 |
|
Christopher Jeffrey
|
b522aa2b06
|
handle merkleblock vs block better.
|
2015-12-22 15:03:17 -08:00 |
|
Christopher Jeffrey
|
1c8604477f
|
improve script type tests. improve input/output data.
|
2015-12-22 14:50:07 -08:00 |
|
Christopher Jeffrey
|
b16a86b2d4
|
fix typo.
|
2015-12-22 06:50:09 -08:00 |
|
Christopher Jeffrey
|
d3e4dfaf5c
|
fix some getters. move getInputData and getOutputData. wallet.toAddress.
|
2015-12-22 06:21:01 -08:00 |
|
Christopher Jeffrey
|
a17fe6fe5f
|
use dynamic input and output objects.
|
2015-12-22 05:00:55 -08:00 |
|
Christopher Jeffrey
|
a91f245e86
|
add types to data. aliases for utils.
|
2015-12-22 04:03:15 -08:00 |
|
Christopher Jeffrey
|
eb6a9fc20d
|
make data easier to extract from inputs and outputs.
|
2015-12-22 03:22:49 -08:00 |
|
Christopher Jeffrey
|
a6e3024e9b
|
peer address and port.
|
2015-12-22 03:19:27 -08:00 |
|
Christopher Jeffrey
|
68c16b214a
|
add rblock and rhash helpers.
|
2015-12-22 02:15:33 -08:00 |
|
Christopher Jeffrey
|
52b653083c
|
add features potentially useful for blockchain explorers.
|
2015-12-21 20:00:13 -08:00 |
|
Christopher Jeffrey
|
a7ea69f48a
|
improve utils: primarily toBTC and fromBTC.
|
2015-12-21 15:20:01 -08:00 |
|
Christopher Jeffrey
|
500f079632
|
fix script arithmetic, op_verify, and wallet.fillUnspent.
|
2015-12-21 11:26:13 -08:00 |
|
Christopher Jeffrey
|
d28716c98d
|
use regular addresses for wallet prefix.
|
2015-12-20 19:35:56 -08:00 |
|
Christopher Jeffrey
|
87d4d4b0ad
|
refactor script and wallet. better redeem script error.
|
2015-12-20 16:08:00 -08:00 |
|
Christopher Jeffrey
|
c0d0423f14
|
hd/wallet: minor.
|
2015-12-20 13:29:39 -08:00 |
|
Christopher Jeffrey
|
b900d706c0
|
move varint and readIntv to utils.
|
2015-12-20 02:01:19 -08:00 |
|
Christopher Jeffrey
|
f25d69f30f
|
put user agent in constants.
|
2015-12-20 01:57:47 -08:00 |
|
Christopher Jeffrey
|
93e42e90a1
|
drop old fee and dust constants. style.
|
2015-12-20 01:50:18 -08:00 |
|
Christopher Jeffrey
|
a50ee3e0ba
|
remove wallet.getPublicKeys().
|
2015-12-20 01:45:17 -08:00 |
|
Christopher Jeffrey
|
1db84a0528
|
wallet json and prefix. style. cleanup.
|
2015-12-20 01:43:09 -08:00 |
|
Christopher Jeffrey
|
61699cca3a
|
style: function names.
|
2015-12-19 15:43:28 -08:00 |
|
Christopher Jeffrey
|
0aff6d7cfe
|
improve script.isValidSig.
|
2015-12-19 15:26:26 -08:00 |
|
Christopher Jeffrey
|
2e7892c798
|
use keyPair() in script.verify. whitespace.
|
2015-12-19 15:24:19 -08:00 |
|
Christopher Jeffrey
|
a18a501c37
|
refactor hd keys.
|
2015-12-19 15:14:56 -08:00 |
|
Christopher Jeffrey
|
b20bcf701b
|
fix private key encryption. style changes.
|
2015-12-19 14:00:23 -08:00 |
|
Christopher Jeffrey
|
75afb6d953
|
fix utils.toBTC
|
2015-12-19 02:57:01 -08:00 |
|
Christopher Jeffrey
|
cb2bcc21c6
|
prevent buffered _writes from binding thousands of events.
|
2015-12-19 02:52:51 -08:00 |
|
Christopher Jeffrey
|
a96f27682f
|
style. fix addr timestamp.
|
2015-12-19 02:17:01 -08:00 |
|
Christopher Jeffrey
|
d3811acc28
|
move chain.on("fork") somewhere sane.
|
2015-12-19 02:08:42 -08:00 |
|
Christopher Jeffrey
|
1a6633bade
|
style consistency - again.
|
2015-12-19 02:05:46 -08:00 |
|
Christopher Jeffrey
|
6411ec8914
|
fix p2sh multisig verification.
|
2015-12-19 01:43:34 -08:00 |
|
Christopher Jeffrey
|
7cae4c4eb5
|
remove uint8array check for now. minor style.
|
2015-12-18 22:57:39 -08:00 |
|
Christopher Jeffrey
|
8746248c2c
|
addr packet parsing.
|
2015-12-18 22:55:06 -08:00 |
|
Christopher Jeffrey
|
1e802c152f
|
comments. more style consistency.
|
2015-12-18 22:53:31 -08:00 |
|
Christopher Jeffrey
|
5ece45091b
|
style consistency.
|
2015-12-18 22:37:02 -08:00 |
|
Christopher Jeffrey
|
9fe8afa7d3
|
emit orphan event.
|
2015-12-18 20:33:19 -08:00 |
|
Christopher Jeffrey
|
283157dd71
|
add allowEval option.
|
2015-12-18 17:56:06 -08:00 |
|
Christopher Jeffrey
|
0bd4d798a9
|
fix locator hashes by height.
|
2015-12-18 17:38:59 -08:00 |
|
Christopher Jeffrey
|
7cabdcfda5
|
fix getOrphanRoot and usage.
|
2015-12-18 17:31:45 -08:00 |
|
Christopher Jeffrey
|
d1f8e9b5ff
|
add chain.hasOrphan method.
|
2015-12-18 16:58:26 -08:00 |
|
Christopher Jeffrey
|
e735249d0d
|
try to choose from at least 5 potential peers when syncing.
|
2015-12-18 16:52:32 -08:00 |
|
Christopher Jeffrey
|
086b32cb73
|
minor: initialize syncPeer.
|
2015-12-18 16:39:29 -08:00 |
|
Christopher Jeffrey
|
cf502913b6
|
check to see if chain is synced.
|
2015-12-18 16:35:00 -08:00 |
|
Christopher Jeffrey
|
34e90c6baa
|
handle chain forks from checkpoints. enforce one syncPeer.
|
2015-12-18 16:30:58 -08:00 |
|
Christopher Jeffrey
|
4984c306b9
|
minor: function name.
|
2015-12-18 15:44:15 -08:00 |
|
Christopher Jeffrey
|
6ae273f84d
|
tx.verify: compare top stack item against zero instead of one.
|
2015-12-18 15:43:17 -08:00 |
|
Christopher Jeffrey
|
5942209f41
|
pass size into block and tx for maxsize checks.
|
2015-12-18 15:41:34 -08:00 |
|
Christopher Jeffrey
|
7ffcc8e7f3
|
check for syncPeer on blockchain fork.
|
2015-12-18 13:12:04 -08:00 |
|
Christopher Jeffrey
|
91618258e7
|
add a peers.bad list for peers with forked blockchains.
|
2015-12-18 13:10:27 -08:00 |
|
Christopher Jeffrey
|
5791672c07
|
pass _network to tx. script debugging. tx filled total.
|
2015-12-18 13:01:23 -08:00 |
|
Christopher Jeffrey
|
82983af52b
|
pool wallets. chain errors. checkpoint failure.
|
2015-12-18 12:10:39 -08:00 |
|
Christopher Jeffrey
|
d109eaba6c
|
handle reject packet.
|
2015-12-17 19:47:20 -08:00 |
|
Christopher Jeffrey
|
135208910d
|
always set nSequence to zero when nLockTime is present.
|
2015-12-17 18:33:27 -08:00 |
|
Christopher Jeffrey
|
1e0a153b59
|
do not overwrite lockTime input by user.
|
2015-12-17 17:58:09 -08:00 |
|
Christopher Jeffrey
|
7f70b573c1
|
enforce checklocktimeverify for nLockTime when adding input. tx.prevOut method.
|
2015-12-17 17:56:46 -08:00 |
|
Christopher Jeffrey
|
aac4911b4e
|
remove comments for pushdata issue.
|
2015-12-17 17:39:08 -08:00 |
|
Christopher Jeffrey
|
f89908bb65
|
script formatting
|
2015-12-17 17:37:13 -08:00 |
|
Christopher Jeffrey
|
3e747f0df4
|
comment
|
2015-12-17 17:33:02 -08:00 |
|
Christopher Jeffrey
|
5b68ec0b3e
|
add option for colored coin output creation.
|
2015-12-17 17:31:37 -08:00 |
|
Christopher Jeffrey
|
efe1181bc1
|
move key sorting to utils.
|
2015-12-17 17:23:33 -08:00 |
|
Christopher Jeffrey
|
b74e8de067
|
input tests. function names. getInputKey/getOutputKey.
|
2015-12-17 17:14:41 -08:00 |
|
Christopher Jeffrey
|
6abfc10a28
|
improve input checks with keys/hashes/redeemscript.
|
2015-12-17 16:53:35 -08:00 |
|
Christopher Jeffrey
|
6caa6b91dd
|
add spendable checking for checklocktimeverify.
|
2015-12-17 16:06:08 -08:00 |
|
Christopher Jeffrey
|
5e89aedf0b
|
improve input testing.
|
2015-12-17 16:06:08 -08:00 |
|
Christopher Jeffrey
|
0c8168c697
|
rename colored coin check. all input script tests.
|
2015-12-17 16:06:08 -08:00 |
|
Christopher Jeffrey
|
3e608c2cc6
|
script and standard transaction types. prefixes.
|
2015-12-17 16:06:08 -08:00 |
|
Christopher Jeffrey
|
07a6788831
|
optimize block and tx rendering. script maxes. sync.
|
2015-12-17 16:06:08 -08:00 |
|
Christopher Jeffrey
|
88ddb3620c
|
get blockchain sync working. fix pushdata ops.
|
2015-12-17 16:05:48 -08:00 |
|
Christopher Jeffrey
|
5e5507f668
|
optimize checkmultisig.
|
2015-12-15 01:48:21 -08:00 |
|
Christopher Jeffrey
|
c44ea0090f
|
implement sighash_single bug.
|
2015-12-15 01:41:44 -08:00 |
|
Christopher Jeffrey
|
1b07d6e906
|
minor cleanup.
|
2015-12-15 01:23:49 -08:00 |
|
Christopher Jeffrey
|
c68ab4ee7d
|
implement all sighash types. add hasUnspent().
|
2015-12-15 01:22:24 -08:00 |
|
Christopher Jeffrey
|
b0a3a0e853
|
utils. minor fixes. wallet functions.
|
2015-12-14 14:00:06 -08:00 |
|
Christopher Jeffrey
|
5c1606985a
|
outputScript() consistency.
|
2015-12-10 18:02:47 -08:00 |
|
Christopher Jeffrey
|
1caa0804d9
|
add getKey functions to TX.
|
2015-12-10 17:54:34 -08:00 |
|
Christopher Jeffrey
|
bb9974b818
|
add master key reference to hd keys.
|
2015-12-10 17:54:15 -08:00 |
|
Christopher Jeffrey
|
243d3fd69f
|
fill checkmultisig scripts with 0s if not enough keys are available. add format function.
|
2015-12-10 17:53:42 -08:00 |
|
Christopher Jeffrey
|
c251def27c
|
wallet: multisig key handling. prefixes. to/fromJSON.
|
2015-12-10 17:45:56 -08:00 |
|
Christopher Jeffrey
|
d7eea0941e
|
add less-than-dust to fee. recalculate fee after input scripts are templated.
|
2015-12-10 13:52:34 -08:00 |
|
Christopher Jeffrey
|
3f44538b46
|
remove commented code. error consistency.
|
2015-12-10 02:28:57 -08:00 |
|
Christopher Jeffrey
|
3dec18c2c7
|
wallet/tx/script: n limit. refactor multisig options.
|
2015-12-10 02:25:44 -08:00 |
|
Christopher Jeffrey
|
14f08e891c
|
improve toBTC and fromBTC while ensuring safety.
|
2015-12-09 17:31:45 -08:00 |
|
Christopher Jeffrey
|
ef1244442f
|
check for network on fromJSON.
|
2015-12-09 16:32:01 -08:00 |
|
Christopher Jeffrey
|
57491aaadc
|
add network.js and testnet support. see #40.
|
2015-12-09 16:25:55 -08:00 |
|
Christopher Jeffrey
|
26035c3b41
|
minor fix for disabled op_eval.
|
2015-12-09 14:40:40 -08:00 |
|
Christopher Jeffrey
|
f9186d785a
|
ensure p2sh inputs have only push ops (do the same for raw multisig?).
|
2015-12-09 14:35:47 -08:00 |
|
Christopher Jeffrey
|
72d9a93773
|
fix and test if statements. fix comparisons.
|
2015-12-09 14:35:23 -08:00 |
|
Christopher Jeffrey
|
690fe7163a
|
better handling of [] when it is OP_0.
|
2015-12-09 12:42:45 -08:00 |
|
Christopher Jeffrey
|
2fd1d171f2
|
handle op_1negate.
|
2015-12-09 12:15:02 -08:00 |
|
Christopher Jeffrey
|
79a594716a
|
reorder opcode handlers. move op_eval (disabled).
|
2015-12-09 12:02:39 -08:00 |
|
Christopher Jeffrey
|
d45350ede9
|
refactor script.execute order of opcodes.
|
2015-12-09 12:00:35 -08:00 |
|
Christopher Jeffrey
|
e605fe5388
|
whitespace.
|
2015-12-09 11:57:54 -08:00 |
|
Christopher Jeffrey
|
2412c0999b
|
potential tx.verify fix.
|
2015-12-09 11:56:08 -08:00 |
|
Christopher Jeffrey
|
a0a391e89e
|
add if/notif/else/endif opcodes.
|
2015-12-09 11:55:05 -08:00 |
|
Christopher Jeffrey
|
d1ac6e914d
|
refactor script.execute.
|
2015-12-09 10:57:18 -08:00 |
|
Christopher Jeffrey
|
c869578009
|
script: cleanup.
|
2015-12-09 10:44:44 -08:00 |
|
Christopher Jeffrey
|
89f2a0dcc3
|
formatting. make use of helpers in hd.
|
2015-12-09 10:40:33 -08:00 |
|
Christopher Jeffrey
|
8a33f2efa1
|
add getFullPublicKey/getOwnPublicKey and use appropriately.
|
2015-12-08 19:42:12 -08:00 |
|
Christopher Jeffrey
|
71ea61e467
|
update elliptic. remove ec.curve.n workaround.
|
2015-12-08 17:34:36 -08:00 |
|
Christopher Jeffrey
|
22e092d6b8
|
fix and test hd keys.
|
2015-12-08 16:36:47 -08:00 |
|
Christopher Jeffrey
|
e4cfa878f1
|
multisig options.
|
2015-12-08 15:02:32 -08:00 |
|
Christopher Jeffrey
|
5f8ad78e4d
|
have tx.verify handle p2sh correctly.
|
2015-12-08 14:54:21 -08:00 |
|
Christopher Jeffrey
|
a9a9cf0879
|
add more opcodes to script.execute. handle codesep properly.
|
2015-12-08 14:06:10 -08:00 |
|
Christopher Jeffrey
|
fd7d20be9c
|
enforce strict ordering with checkmultisig.
|
2015-12-08 11:46:14 -08:00 |
|
Christopher Jeffrey
|
3c0bf360e2
|
add bip66 strict der sig checking.
|
2015-12-08 11:35:42 -08:00 |
|
Christopher Jeffrey
|
adbb0099a1
|
add checklocktimeverify. pass in tx and input to execute() instead of using hasher callback.
|
2015-12-08 11:24:22 -08:00 |
|
Christopher Jeffrey
|
7016991366
|
order keys and signatures for multisig correctly.
|
2015-12-07 19:18:37 -08:00 |
|
Christopher Jeffrey
|
77623bb8d6
|
remove useless code.
|
2015-12-07 16:34:44 -08:00 |
|
Christopher Jeffrey
|
58d8881e46
|
add hd tests.
|
2015-12-07 16:17:09 -08:00 |
|
Christopher Jeffrey
|
a1fea2bd65
|
scriptOutput: move "p2shify".
|
2015-12-07 15:55:31 -08:00 |
|
Christopher Jeffrey
|
37e1c8a2ef
|
formatting changes.
|
2015-12-07 15:51:15 -08:00 |
|
Christopher Jeffrey
|
b1e7cde3dd
|
improve script functionality and usage.
|
2015-12-07 15:39:18 -08:00 |
|
Christopher Jeffrey
|
cf20326e98
|
verify sighash types other than all.
|
2015-12-07 14:22:25 -08:00 |
|
Christopher Jeffrey
|
1804acc77c
|
tests passing.
|
2015-12-07 14:02:25 -08:00 |
|
Christopher Jeffrey
|
3d9d6be23c
|
use this.m for nsigs.
|
2015-12-07 11:04:23 -08:00 |
|
Christopher Jeffrey
|
9241a6660e
|
remove old wallet.fill and wallet.sign.
|
2015-12-07 11:02:50 -08:00 |
|
Christopher Jeffrey
|
d7bc48fc2e
|
move wallet.fill to tx object.
|
2015-12-07 11:00:58 -08:00 |
|
Christopher Jeffrey
|
ae394fad11
|
improve tx.maxSize for p2sh and multisig.
|
2015-12-05 20:54:18 -08:00 |
|
Christopher Jeffrey
|
6295642f20
|
remove useless if statement.
|
2015-12-05 20:23:33 -08:00 |
|
Christopher Jeffrey
|
4f76b9f18c
|
fix scriptInput/signInput for multisig/p2sh.
|
2015-12-05 19:02:44 -08:00 |
|
Christopher Jeffrey
|
db0da78ae5
|
only start calculating startHeight and locatorHashes after chain load.
|
2015-12-05 18:34:18 -08:00 |
|
Christopher Jeffrey
|
3f2d53b414
|
hd.js: workaround for latest bn.js.
|
2015-12-05 18:19:52 -08:00 |
|
Christopher Jeffrey
|
c96a12bf2e
|
fix validateAddress. cleanup.
|
2015-12-05 04:59:18 -08:00 |
|
Christopher Jeffrey
|
46a5ca7500
|
minor fix for wallet.fill.
|
2015-12-05 04:18:21 -08:00 |
|
Christopher Jeffrey
|
916fca9c2f
|
update hash.js. use for sha512-hmacs.
|
2015-12-05 04:16:41 -08:00 |
|
Christopher Jeffrey
|
40fca0dda8
|
remove noSign and getChange for now.
|
2015-12-05 03:55:08 -08:00 |
|
Christopher Jeffrey
|
a2f13d94c3
|
fix address problems. update elliptic to 3.0.3.
|
2015-12-05 03:40:11 -08:00 |
|
Christopher Jeffrey
|
505aad8729
|
improve/fix p2sh. move input signing functionality to tx object.
|
2015-12-05 03:01:37 -08:00 |
|
Christopher Jeffrey
|
377e156874
|
fix m, n, publicKeys in wallet constructor.
|
2015-12-05 01:03:51 -08:00 |
|
Christopher Jeffrey
|
1e10b83acf
|
fix redeem script push in wallet.
|
2015-12-05 00:50:19 -08:00 |
|
Christopher Jeffrey
|
1d210589c5
|
comments explaining signing logic.
|
2015-12-05 00:02:23 -08:00 |
|
Christopher Jeffrey
|
acbe4d0c2e
|
remove wallet.signEmpty and tx.signature for now.
|
2015-12-05 00:01:59 -08:00 |
|
Christopher Jeffrey
|
c8e04d8552
|
comments
|
2015-12-04 23:16:02 -08:00 |
|
Christopher Jeffrey
|
87eea1e398
|
fixes and minor style changes
|
2015-12-04 22:50:13 -08:00 |
|
Christopher Jeffrey
|
ea9af49f4b
|
hd and p2sh
|
2015-12-04 18:01:31 -08:00 |
|
Christopher Jeffrey
|
3bfd10d0d0
|
work
|
2015-12-01 22:59:26 -08:00 |
|
Christopher Jeffrey
|
fcc9d661c1
|
satoshi: fix blockchain download.
|
2015-11-30 18:15:57 -08:00 |
|
Christopher Jeffrey
|
feda74523f
|
peer/pool: add origin satoshi protocol.
|
2015-11-30 12:36:39 -08:00 |
|
Christopher Jeffrey
|
a6584ae821
|
script: max length. chain: deadbeef fix.
|
2015-11-30 12:36:06 -08:00 |
|
Stanislas Marion
|
b76f33047e
|
script: .isScripthash(s)/.isNullData(s)
|
2014-12-19 08:04:07 +07:00 |
|
Stanislas Marion
|
70608ae2a3
|
parser: put the exact raw data in tx._raw
|
2014-11-25 18:44:45 +03:00 |
|
Stanislas Marion
|
7655ad12c7
|
script: encode/decode op1-16 as single numbers
fix #33
|
2014-11-17 15:06:37 +03:00 |
|
Christopher Jeffrey
|
4e7dbae829
|
fix: minor fixes to block framer and block.
|
2014-06-24 01:08:44 -05:00 |
|
Christopher Jeffrey
|
73ea21a903
|
minor: style - move block json functions to bottom of the file.
|
2014-06-24 00:59:39 -05:00 |
|
Christopher Jeffrey
|
5e3e72ba4c
|
minor: more style concerns.
|
2014-06-24 00:57:46 -05:00 |
|
Christopher Jeffrey
|
6072fe7afd
|
minor: remove commented code. style concerns.
|
2014-06-24 00:45:18 -05:00 |
|
Christopher Jeffrey
|
c6bafbcb48
|
fix: ensure user agent is less than 0xfd in length. we can assume the varint is 1 byte.
|
2014-06-24 00:43:37 -05:00 |
|
Christopher Jeffrey
|
6a03b30ddf
|
fix: allow ownOutputs as orphans - fixes failing test. see #27.
|
2014-06-16 22:46:58 -05:00 |
|
Christopher Jeffrey
|
2e14fe1780
|
fix tx-pool unspent output handling. fixes #26.
|
2014-06-16 18:55:04 -05:00 |
|