Commit Graph

277 Commits

Author SHA1 Message Date
Christopher Jeffrey
1d8c9e7c99
mnemonic improvements. 2016-04-29 05:49:10 -07:00
Christopher Jeffrey
6e2b58c16d
script and reader. 2016-04-28 15:01:53 -07:00
Christopher Jeffrey
690f1629c3
FindAndDelete. misc cleanup. 2016-04-21 10:48:55 -07:00
Christopher Jeffrey
c1fd8bb285
test. fix sigops counting. 2016-04-20 13:46:56 -07:00
Christopher Jeffrey
c95681ae3f
add date and time functions. 2016-04-19 20:42:46 -07:00
Christopher Jeffrey
608fb8777e
do not handle negative zero for twos compliment. 2016-04-19 08:41:24 -07:00
Christopher Jeffrey
1e7e9a2aa7
handle negative outputs. serialize int64 correctly. 2016-04-19 07:36:05 -07:00
Christopher Jeffrey
b9369412d2
implement GetAdjustedTime. 2016-04-19 05:47:47 -07:00
Christopher Jeffrey
397e1f7d0b
more accurate removeData. 2016-04-18 21:50:09 -07:00
Christopher Jeffrey
f8d49f0653
more utils cleanup. 2016-04-18 01:11:02 -07:00
Christopher Jeffrey
69ddca52a8
clean up utils. 2016-04-18 00:36:03 -07:00
Christopher Jeffrey
ad11d33038
more accurate script interpretation. 2016-04-17 06:39:31 -07:00
Christopher Jeffrey
8efef35828
minor. 2016-04-15 16:24:33 -07:00
Christopher Jeffrey
e3595906c9
no one can say i didn't write docs now. 2016-04-15 06:43:44 -07:00
Christopher Jeffrey
800d17278e
sort txs. 2016-04-09 03:56:36 -07:00
Christopher Jeffrey
a3720bd42d
more accurate segwit4 verification. misc. 2016-04-07 02:03:38 -07:00
Christopher Jeffrey
0a7f118528
add environment. 2016-04-06 18:55:55 -07:00
Christopher Jeffrey
9356a40e62 refactor. 2016-04-05 16:23:57 -07:00
Christopher Jeffrey
c5bcd44606 miner. network. serve blocks and mempool txs. 2016-04-03 21:43:50 -07:00
Christopher Jeffrey
fd6b315756 refactor. miner fixes. 2016-04-03 04:48:02 -07:00
Christopher Jeffrey
24060f04bb fix and improve miner. 2016-04-03 04:11:26 -07:00
Christopher Jeffrey
187137262e spvnode. readme. 2016-04-03 01:34:30 -07:00
Christopher Jeffrey
47160c1cfe parsing and serialization. 2016-04-02 04:12:50 -07:00
Christopher Jeffrey
90aa2d81a6 more base58. 2016-04-01 14:40:56 -07:00
Christopher Jeffrey
4af5ba2574 base58: minor. 2016-04-01 14:35:29 -07:00
Christopher Jeffrey
f3b7aee6fe throw error on bad base58. 2016-04-01 07:06:35 -07:00
Christopher Jeffrey
bbf7748fbe drop old base58 functions. 2016-04-01 06:36:55 -07:00
Christopher Jeffrey
e17e36d1a0 clean up base58. 2016-04-01 06:03:56 -07:00
Christopher Jeffrey
42e12f312f faster base58. 2016-04-01 05:13:47 -07:00
Christopher Jeffrey
018ce13815 even more size calculation. 2016-03-31 06:45:53 -07:00
Christopher Jeffrey
b084913680 refactor. script encoding checks. 2016-03-31 02:31:09 -07:00
Christopher Jeffrey
9b4e363a80 more chain refactoring. 2016-03-30 17:32:39 -07:00
Christopher Jeffrey
4d2d9b328c verify error refactor. 2016-03-30 16:21:56 -07:00
Christopher Jeffrey
d2767e4e34 refactoring. 2016-03-30 04:13:26 -07:00
Christopher Jeffrey
6655e57053 refactor maps. 2016-03-29 19:20:10 -07:00
Christopher Jeffrey
30148368a8 parsing. 64 bit ints. 2016-03-27 14:56:57 -07:00
Christopher Jeffrey
e1fd556ff6 misc. alert. 2016-03-27 13:57:35 -07:00
Christopher Jeffrey
85af68d2ef use native buffer methods if possible. 2016-03-26 06:11:58 -07:00
Christopher Jeffrey
a52d62a71e varint. 2016-03-25 16:32:15 -07:00
Christopher Jeffrey
62a7dba556 rename intv. 2016-03-25 15:31:43 -07:00
Christopher Jeffrey
569016e752 refactor. numbers. 2016-03-25 15:17:43 -07:00
Christopher Jeffrey
c91cf7571b refactor. 2016-03-25 02:07:47 -07:00
Christopher Jeffrey
2a75a39849 writeu64n 2016-03-24 17:20:18 -07:00
Christopher Jeffrey
6ce950d081 duck typing. 2016-03-24 14:18:24 -07:00
Christopher Jeffrey
1db0954c83 misc. 2016-03-24 03:45:00 -07:00
Christopher Jeffrey
5023c7efe4 add locker. refactor. 2016-03-23 03:52:11 -07:00
Christopher Jeffrey
43923e3201 use bn.toBuffer. 2016-03-21 21:57:20 -07:00
Christopher Jeffrey
c543d205c0 workers parsing. 2016-03-21 21:06:29 -07:00
Christopher Jeffrey
2797cd2f44 rewrite mempool. 2016-03-21 16:29:02 -07:00
Christopher Jeffrey
93efe376a6 refactor. isSigned. 2016-03-21 02:16:56 -07:00
Christopher Jeffrey
6136434959 refactor. 2016-03-20 09:19:43 -07:00
Christopher Jeffrey
5153e0e1f0 cleanup. 2016-03-19 10:03:55 -07:00
Christopher Jeffrey
800f5a5448 db wrapper. fix memleak. consistency. 2016-03-19 08:24:22 -07:00
Christopher Jeffrey
d690c9ea5a ldb. 2016-03-18 20:12:34 -07:00
Christopher Jeffrey
4f805ce52a lru. buffer reader zeroCopy. utils.wrap. 2016-03-18 20:12:17 -07:00
Christopher Jeffrey
1b3eb64998 more writers and readers. 2016-03-15 14:44:37 -07:00
Christopher Jeffrey
5fb16d29e6 refactor. 2016-03-15 13:31:54 -07:00
Christopher Jeffrey
2e37b1e7ad lint. 2016-03-15 04:37:17 -07:00
Christopher Jeffrey
00dfad25da memleak work. 2016-03-14 13:25:02 -07:00
Christopher Jeffrey
18145ad541 datastore fixes. 2016-03-13 17:49:12 -07:00
Christopher Jeffrey
908ddc8254 cleanup. 2016-03-11 22:47:55 -08:00
Christopher Jeffrey
8f85f0b5c9 chaindb. 2016-03-11 15:53:15 -08:00
Christopher Jeffrey
27214676bc chainblock methods. 2016-03-08 13:47:41 -08:00
Christopher Jeffrey
aa101a16e8 misc improvements. 2016-03-07 19:00:03 -08:00
Christopher Jeffrey
862a412418 drop references to block buffer. less mem usage. fixes. 2016-03-07 16:56:43 -08:00
Christopher Jeffrey
b5f8f7291a db refactor. 2016-03-06 11:56:50 -08:00
Christopher Jeffrey
786aed49dd throw if async callback is executed twice. 2016-03-06 02:15:56 -08:00
Christopher Jeffrey
00b8f8950b walletdb improvements. start refactoring node object. 2016-02-29 21:33:11 -08:00
Christopher Jeffrey
15c63eb14a use utils.indexOf. 2016-02-28 20:06:02 -08:00
Christopher Jeffrey
3fcc7d5b07 segwit wallet support. segwit chain improvements. 2016-02-28 04:12:51 -08:00
Christopher Jeffrey
4c653683b7 segregated - goddamn - witness... and docs update. 2016-02-26 03:54:26 -08:00
Christopher Jeffrey
bade3ba4a5 inspect. cleanup. fixes. cache addresses. 2016-02-25 13:23:02 -08:00
Christopher Jeffrey
a9c116c98c profiler. refactoring. 2016-02-25 01:36:50 -08:00
Christopher Jeffrey
6a644be03f ensure prefix. 2016-02-24 00:07:44 -08:00
Christopher Jeffrey
26969d823a debug file flag. 2016-02-23 21:33:33 -08:00
Christopher Jeffrey
5cb06c6cbd faster hd deserialization. 2016-02-23 20:23:25 -08:00
Christopher Jeffrey
0dabee0336 improve getMerkleRoot. 2016-02-23 17:11:24 -08:00
Christopher Jeffrey
0fac957da3 utils. merkle tree. 2016-02-23 16:53:05 -08:00
Christopher Jeffrey
1e1e214900 debugging output. 2016-02-23 05:27:36 -08:00
Christopher Jeffrey
95a5d2c47b getheaders. better pow test. 2016-02-23 04:37:13 -08:00
Christopher Jeffrey
10821a00fc utils. improve fromBase58. 2016-02-23 02:45:59 -08:00
Christopher Jeffrey
5923726e78 misc fixes. 2016-02-22 23:31:05 -08:00
Christopher Jeffrey
1ced7af7b4 handle minimal data better. 2016-02-22 23:13:46 -08:00
Christopher Jeffrey
4cc5d73959 use zero for op_0. fix signed ints. 2016-02-22 21:59:52 -08:00
Christopher Jeffrey
73d3291ee9 more buffer work. 2016-02-22 21:25:01 -08:00
Christopher Jeffrey
78e9be11c3 switch to buffers. 2016-02-22 20:37:15 -08:00
Christopher Jeffrey
fc4fc9ea5c improve toHex. 2016-02-22 15:35:17 -08:00
Christopher Jeffrey
0f4d2ca281 use async helpers. 2016-02-22 04:25:20 -08:00
Christopher Jeffrey
86b228ca07 add utils.once. some async functions. disable blockdb truncate. 2016-02-22 03:09:48 -08:00
Christopher Jeffrey
c81770c2b1 move some deps around. drop inherits. 2016-02-21 06:31:15 -08:00
Christopher Jeffrey
6e2eb039ac add spv node. add .bcoin dir. add file storage for wallet. 2016-02-20 16:53:10 -08:00
Christopher Jeffrey
28274cdba4 rename methods. 2016-02-19 21:42:44 -08:00
Christopher Jeffrey
f7ac99d24d minor refactoring. 2016-02-17 16:02:11 -08:00
Christopher Jeffrey
fe46d1ada5 contextual verification. misc. 2016-02-16 13:45:02 -08:00
Christopher Jeffrey
e912f78814 async chain. 2016-02-16 03:03:11 -08:00
Christopher Jeffrey
39ecd292b3 bank on new bn() accepting buffers for extra perf. 2016-02-15 14:18:46 -08:00
Christopher Jeffrey
6cc4c866dc wallet refactor. fixes. 2016-02-10 16:42:02 -08:00
Christopher Jeffrey
17e25804de better preload. misc fixes. 2016-02-09 00:07:38 -08:00
Christopher Jeffrey
72b7adc800 get bcoin working in the browser again. 2016-02-08 18:06:39 -08:00
Christopher Jeffrey
8fd883b6c6 add async utils 2016-02-08 17:03:31 -08:00
Christopher Jeffrey
7d17dd855f utils.cmp. tx-pool improvements. 2016-02-07 06:39:58 -08:00
Christopher Jeffrey
588d978bb9 implement bip64. 2016-02-07 04:36:30 -08:00
Christopher Jeffrey
fa22c79dbe hd and wallet work. 2016-02-04 02:44:16 -08:00
Christopher Jeffrey
eacd1e2ece bip45 wallet 2016-02-03 19:46:02 -08:00
Christopher Jeffrey
f6dc42924b global debugging. script.isEncoded. 2016-01-20 12:25:19 -08:00
Christopher Jeffrey
46295b3c08 cleanup. misc. 2016-01-15 02:23:22 -08:00
Christopher Jeffrey
0ba31eeb59 better script conformance. 2016-01-14 15:58:22 -08:00
Christopher Jeffrey
4f8d24ba36 more int and packet work. 2016-01-13 18:31:07 -08:00
Christopher Jeffrey
5c1b136117 revert back to old output value writing. 2016-01-13 04:31:20 -08:00
Christopher Jeffrey
37803d178d use write64 for output values. 2016-01-13 04:15:14 -08:00
Christopher Jeffrey
10bd983899 version and addr packets. 2016-01-13 03:38:23 -08:00
Christopher Jeffrey
de455fa3e9 improve int functions and usage in parser and framer. 2016-01-12 18:13:32 -08:00
Christopher Jeffrey
f420b41907 improve script.isMultisig. 2016-01-11 23:58:43 -08:00
Christopher Jeffrey
6f86ca2d02 add utils.isBytes. 2016-01-11 01:07:05 -08:00
Christopher Jeffrey
eb1a3ea6d2 transaction improvements. 2016-01-10 04:58:03 -08:00
Christopher Jeffrey
314c14f422 input/output consistency. misc. 2016-01-09 13:22:08 -08:00
Christopher Jeffrey
d56f7a3733 even more bufffer work. 2016-01-08 04:11:46 -08:00
Christopher Jeffrey
465b23013d temporarily use buffers. coinbase fixes. script/tx fixes. 2016-01-08 03:34:55 -08:00
Christopher Jeffrey
42fbef82ed misc 2016-01-07 03:28:58 -08:00
Christopher Jeffrey
8d120a4fd6 more block verification. 2016-01-06 19:15:41 -08:00
Christopher Jeffrey
6da3fbac3a add utils.hash test. 2016-01-04 16:03:04 -08:00
Christopher Jeffrey
10fce032b7 improve locatorHashes. fix utils ref in tx-pool. add utils.hash. 2016-01-04 15:12:50 -08:00
Christopher Jeffrey
0f8819c78e minor fixes. refactor timestamps. 2016-01-04 04:12:26 -08:00
Christopher Jeffrey
7a8a7a5a2b better wallet searching for spv. pool methods. 2016-01-02 03:44:25 -08:00
Christopher Jeffrey
67d1405c15 handle compact mantissa numbers. 2015-12-29 13:13:51 -08:00
Christopher Jeffrey
43b0533a18 minor improvements and fixes. 2015-12-27 23:54:53 -08:00
Christopher Jeffrey
389ee296b0 improve tx building. minor style fixes. utils.uniq. 2015-12-23 16:24:29 -08:00
Christopher Jeffrey
58d8e3ce53 fix coinbase parsing. 2015-12-23 04:14:51 -08:00
Christopher Jeffrey
07a1322749 inspect methods. better data parsing. expose modules. 2015-12-22 19:27:36 -08:00
Christopher Jeffrey
a91f245e86 add types to data. aliases for utils. 2015-12-22 04:03:15 -08:00
Christopher Jeffrey
a7ea69f48a improve utils: primarily toBTC and fromBTC. 2015-12-21 15:20:01 -08:00
Christopher Jeffrey
b900d706c0 move varint and readIntv to utils. 2015-12-20 02:01:19 -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
75afb6d953 fix utils.toBTC 2015-12-19 02:57:01 -08:00
Christopher Jeffrey
1a6633bade style consistency - again. 2015-12-19 02:05:46 -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
efe1181bc1 move key sorting to utils. 2015-12-17 17:23:33 -08:00
Christopher Jeffrey
88ddb3620c get blockchain sync working. fix pushdata ops. 2015-12-17 16:05:48 -08:00
Christopher Jeffrey
b0a3a0e853 utils. minor fixes. wallet functions. 2015-12-14 14:00:06 -08:00
Christopher Jeffrey
14f08e891c improve toBTC and fromBTC while ensuring safety. 2015-12-09 17:31:45 -08:00
Christopher Jeffrey
57491aaadc add network.js and testnet support. see #40. 2015-12-09 16:25:55 -08:00
Christopher Jeffrey
a9a9cf0879 add more opcodes to script.execute. handle codesep properly. 2015-12-08 14:06:10 -08:00
Christopher Jeffrey
7016991366 order keys and signatures for multisig correctly. 2015-12-07 19:18:37 -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
7b928f079c utils: improve nextTick. 2014-06-06 16:23:26 -05:00
Christopher Jeffrey
0b188640ec util: use regular loop constructs for u64 writes.
Signed-off-by: Fedor Indutny <fedor@indutny.com>
2014-05-20 13:36:20 +04:00
Christopher Jeffrey
615292de46 util: style changes.
Signed-off-by: Fedor Indutny <fedor@indutny.com>
2014-05-20 13:36:19 +04:00