Commit Graph

323 Commits

Author SHA1 Message Date
Christopher Jeffrey
6005f0f750
whole bunch of refactoring. 2016-05-18 04:23:05 -07:00
Christopher Jeffrey
5ac4621b0e
comments. docs. 2016-05-15 18:22:28 -07:00
Christopher Jeffrey
6690991acb
more hd improvements. 2016-05-13 19:28:19 -07:00
Christopher Jeffrey
6d55077818
fee work. 2016-05-13 17:21:13 -07:00
Christopher Jeffrey
6bf5554325
rename address. 2016-05-13 13:15:38 -07:00
Christopher Jeffrey
897e4ae662
hd refactor. 2016-05-13 13:04:55 -07:00
Christopher Jeffrey
8db6e1c9a6
store by hash. 2016-05-13 12:01:06 -07:00
Christopher Jeffrey
fc22de77bf
tests passing. 2016-05-13 10:04:56 -07:00
Christopher Jeffrey
5eb3946e38
major refactor. 2016-05-13 09:24:04 -07:00
Christopher Jeffrey
4ce1ed3046
Revert "require height."
This reverts commit c334d1f9d8.
2016-05-12 14:17:35 -07:00
Christopher Jeffrey
c334d1f9d8
require height. 2016-05-12 14:17:32 -07:00
Christopher Jeffrey
eea25052b6
refactor hash and address handling in wallet. 2016-05-05 04:30:45 -07:00
Christopher Jeffrey
a5ad8dcbfa
refactor workers. add web workers. 2016-05-03 02:58:55 -07:00
Christopher Jeffrey
8d38178b30
more utils refactoring. 2016-04-30 20:06:26 -07:00
Christopher Jeffrey
afee09a935
utils refactor. 2016-04-30 16:20:40 -07:00
Christopher Jeffrey
270feadf74
move jsdoc types. 2016-04-28 15:01:53 -07:00
Christopher Jeffrey
ed6b1e9072
rename methods. 2016-04-19 11:50:56 -07:00
Christopher Jeffrey
99d8f4d928
more hd refactoring. 2016-04-19 10:49:08 -07:00
Christopher Jeffrey
c8e771d05b
refactor hd. 2016-04-19 10:39:15 -07:00
Christopher Jeffrey
69ddca52a8
clean up utils. 2016-04-18 00:36:03 -07:00
Christopher Jeffrey
0a621238ba
refactor: rename constants. 2016-04-17 08:45:22 -07:00
Christopher Jeffrey
0f6c19bcd5
major refactor. 2016-04-16 20:03:00 -07:00
Christopher Jeffrey
72e907f81e
more fixes. cleanup. 2016-04-15 06:44:38 -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
2d83ce9579
wallet fixes. 2016-04-09 04:21:41 -07:00
Christopher Jeffrey
5a24103f62
disable avoid fee sniping for now. 2016-04-08 16:37:04 -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
86312d9241 more refactoring. 2016-04-04 23:53:05 -07:00
Christopher Jeffrey
849f1d842e more refactoring. 2016-04-04 17:37:53 -07:00
Christopher Jeffrey
4f03675b9f remotely add and remove keys. 2016-04-01 22:01:13 -07:00
Christopher Jeffrey
c9bdad9bdf hd rewrite. 2016-04-01 21:19:46 -07:00
Christopher Jeffrey
c030d2480d more http. 2016-04-01 17:02:14 -07:00
Christopher Jeffrey
819c63b9b7 expose zapping. 2016-03-31 16:32:09 -07:00
Christopher Jeffrey
8346cccbcb balance. http. 2016-03-31 16:17:10 -07:00
Christopher Jeffrey
018ce13815 even more size calculation. 2016-03-31 06:45:53 -07:00
Christopher Jeffrey
af6ac736bf consistent naming. 2016-03-28 13:22:31 -07:00
Christopher Jeffrey
6ce950d081 duck typing. 2016-03-24 14:18:24 -07:00
Christopher Jeffrey
6fdfd2ab6b more db wrapper improvements. 2016-03-19 08:56:50 -07:00
Christopher Jeffrey
800f5a5448 db wrapper. fix memleak. consistency. 2016-03-19 08:24:22 -07:00
Christopher Jeffrey
c445fcd1bd more linting. 2016-03-15 04:59:39 -07:00
Christopher Jeffrey
2e37b1e7ad lint. 2016-03-15 04:37:17 -07:00
Christopher Jeffrey
c2aa7b3727 more http things. 2016-03-10 02:33:53 -08:00
Christopher Jeffrey
cee8b65989 http features. 2016-03-09 15:11:36 -08:00
Christopher Jeffrey
f67902a9cf refactor. allow tx querying by timestamp. 2016-03-04 03:49:43 -08:00
Christopher Jeffrey
e962686e93 wallet provider. 2016-03-03 20:15:03 -08:00
Christopher Jeffrey
4df5b305ea walletdb and txpool. 2016-03-03 18:57:02 -08:00
Christopher Jeffrey
434fdc7a78 wallet fixes. 2016-03-02 20:28:22 -08:00
Christopher Jeffrey
13ee6a5751 fix typo. 2016-03-02 19:42:09 -08:00
Christopher Jeffrey
e6048e85c8 walletdb. txdb. webhooks. 2016-03-02 19:37:55 -08:00
Christopher Jeffrey
ad8090dc7c tx-by-height. update node and pool to use walletdb. 2016-03-02 15:20:39 -08:00
Christopher Jeffrey
689db5632e wallet id. wallet db. 2016-03-02 14:00:53 -08:00
Christopher Jeffrey
8d8952add7 dont save wallet until it has an id. 2016-03-02 04:10:07 -08:00
Christopher Jeffrey
6a6cae51c6 refactor. 2016-03-02 03:51:35 -08:00
Christopher Jeffrey
d86031c073 more refactoring. 2016-03-02 02:59:08 -08:00
Christopher Jeffrey
e31e485553 walletdb. tests. refactor. 2016-03-02 02:36:14 -08:00
Christopher Jeffrey
8f77cf7173 all tests passing. 2016-03-01 20:15:57 -08:00
Christopher Jeffrey
b1232593d8 txdb. 2016-03-01 19:40:18 -08:00
Christopher Jeffrey
00b8f8950b walletdb improvements. start refactoring node object. 2016-02-29 21:33:11 -08:00
Christopher Jeffrey
c41ded7360 wallet improvements. 2016-02-29 14:47:57 -08:00
Christopher Jeffrey
2677b0eecd wallet refactoring. 2016-02-28 22:44:02 -08:00
Christopher Jeffrey
3fcc7d5b07 segwit wallet support. segwit chain improvements. 2016-02-28 04:12:51 -08:00
Christopher Jeffrey
bd868cda7a segwit things 2016-02-27 05:51:48 -08:00
Christopher Jeffrey
8467f339c1 segwit. misc. 2016-02-26 18:06:08 -08:00
Christopher Jeffrey
4c653683b7 segregated - goddamn - witness... and docs update. 2016-02-26 03:54:26 -08:00
Christopher Jeffrey
27f6e6e678 refactor coin selection. 2016-02-24 04:05:16 -08:00
Christopher Jeffrey
30db808930 refactor keypair and hd. 2016-02-23 19:08:42 -08:00
Christopher Jeffrey
6cf17c2b6d some more optimization. 2016-02-23 03:59:12 -08:00
Christopher Jeffrey
83239112e4 improve keypair. 2016-02-23 03:46:51 -08:00
Christopher Jeffrey
e5de8db660 more json improvements. 2016-02-23 02:27:10 -08:00
Christopher Jeffrey
c81770c2b1 move some deps around. drop inherits. 2016-02-21 06:31:15 -08:00
Christopher Jeffrey
b11cdd80af add walletdb. 2016-02-20 18:44:09 -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
86a368dddf fix wallet scan. 2016-02-20 03:50:25 -08:00
Christopher Jeffrey
032db24c41 typo 2016-02-19 21:17:05 -08:00
Christopher Jeffrey
06ba355363 simplify scanning. 2016-02-13 16:08:29 -08:00
Christopher Jeffrey
2a5c35cf05 add hd scanning to wallet. 2016-02-13 15:44:15 -08:00
Christopher Jeffrey
9d727cebae wallet tests. fixes. 2016-02-12 22:32:54 -08:00
Christopher Jeffrey
88c131c7b3 fix pool. hd improvements. 2016-02-12 17:57:21 -08:00
Christopher Jeffrey
da19b6da29 add regular addresses to addressMap. 2016-02-12 13:55:21 -08:00
Christopher Jeffrey
697718c940 drop fee recalculation. 2016-02-12 04:04:18 -08:00
Christopher Jeffrey
016c85f8b5 fill refactor. accurate fee calculation. 2016-02-12 03:54:02 -08:00
Christopher Jeffrey
686dcbcdd9 minor fixes. 2016-02-12 01:20:05 -08:00
Christopher Jeffrey
a788f151b1 increment depths on sync. 2016-02-11 02:56:07 -08:00
Christopher Jeffrey
d445fb7943 option parsing. 2016-02-11 02:52:27 -08:00
Christopher Jeffrey
173e133bf4 minor keypair fix. 2016-02-11 01:44:34 -08:00
Christopher Jeffrey
4a6c73fc8e refactor signing. 2016-02-11 01:29:35 -08:00
Christopher Jeffrey
b963809318 minor. 2016-02-10 21:39:44 -08:00
Christopher Jeffrey
501abbab45 another wallet rewrite. 2016-02-10 21:06:25 -08:00
Christopher Jeffrey
6cc4c866dc wallet refactor. fixes. 2016-02-10 16:42:02 -08:00
Christopher Jeffrey
58a859267c more tx-pool consistency. 2016-02-07 07:18:19 -08:00
Christopher Jeffrey
7d17dd855f utils.cmp. tx-pool improvements. 2016-02-07 06:39:58 -08:00
Christopher Jeffrey
1761266ba9 improve tx-pool. 2016-02-06 19:10:40 -08:00
Christopher Jeffrey
7bb20437bc refactor tx instantiation. 2016-02-06 17:12:16 -08:00
Christopher Jeffrey
769b50c999 rename output.prev to coin. 2016-02-06 16:16:02 -08:00
Christopher Jeffrey
274c6e6864 use utxo object instead of tx refs. 2016-02-06 04:54:38 -08:00
Christopher Jeffrey
18f0a55779 refactor tx. 2016-02-05 22:46:04 -08:00
Christopher Jeffrey
7de73c670c pass index around. 2016-02-05 03:59:30 -08:00
Christopher Jeffrey
51b0d83444 remove _deriveKey 2016-02-05 03:50:02 -08:00
Christopher Jeffrey
84551e17e2 paths. scanning. unspents. 2016-02-05 03:44:42 -08:00
Christopher Jeffrey
b835fff86c hd keys. address pruning. txpool balance. 2016-02-04 18:58:56 -08:00
Christopher Jeffrey
a367674584 more keypair stuff. 2016-02-04 03:33:15 -08:00
Christopher Jeffrey
99fac69127 keypair improvements. 2016-02-04 03:30:12 -08:00
Christopher Jeffrey
1ee4e556b0 more fixes. 2016-02-04 02:54:02 -08:00
Christopher Jeffrey
fa22c79dbe hd and wallet work. 2016-02-04 02:44:16 -08:00
Christopher Jeffrey
517a5d488b cleanup 2016-02-03 21:49:32 -08:00
Christopher Jeffrey
cf50502238 more fixes. 2016-02-03 21:46:02 -08:00
Christopher Jeffrey
97bcdd79c2 minor fixes 2016-02-03 21:35:07 -08:00
Christopher Jeffrey
c23fdeba50 improvements. 2016-02-03 21:21:08 -08:00
Christopher Jeffrey
eacd1e2ece bip45 wallet 2016-02-03 19:46:02 -08:00
Christopher Jeffrey
e0ab0ab88d minor changes/fixes. 2016-02-03 02:09:03 -08:00
Christopher Jeffrey
f6fe37be6b improve address.ownInput. 2016-02-02 19:41:47 -08:00
Christopher Jeffrey
13d14b0130 tx: add bip69 sorting. 2016-02-02 17:57:38 -08:00
Christopher Jeffrey
2deccde29e wallet work. consistency. 2016-02-02 16:09:48 -08:00
Christopher Jeffrey
f3fd85354e wallet/keypair: fixes. 2016-02-02 13:43:43 -08:00
Christopher Jeffrey
156601e40a createTX. hd fixes. 2016-02-02 02:50:36 -08:00
Christopher Jeffrey
42e17bc0f2 rewrite wallet. allow multiple addresses. utilize hd. 2016-02-01 21:37:06 -08:00
Christopher Jeffrey
6ad621cace api: rename methods, properties. add legacy support. 2016-02-01 11:50:09 -08:00
Christopher Jeffrey
999cfefe54 more pool work. wallet.fill(). 2016-02-01 10:54:52 -08:00
Christopher Jeffrey
f6dc42924b global debugging. script.isEncoded. 2016-01-20 12:25:19 -08:00
Christopher Jeffrey
c8da41aa9d toJSON fixes. 2016-01-18 17:12:20 -08:00
Christopher Jeffrey
d2205241ee wallet key format. 2016-01-18 16:16:00 -08:00
Christopher Jeffrey
3745577837 standard opcodes. remove tx methods. 2016-01-17 15:52:09 -08:00
Christopher Jeffrey
b9041a0157 sign unknown txs. 2016-01-16 04:50:33 -08:00
Christopher Jeffrey
c94457cf1f more tx refactoring. 2016-01-12 05:15:22 -08:00
Christopher Jeffrey
b77314dd0f signature work. script function renames. add wallet.fillTX/tx.fill. 2016-01-11 15:20:44 -08:00
Christopher Jeffrey
cf5a117a3e fixes and improvements. allow arbitrary redeem scripts for wallet. 2016-01-11 00:10:31 -08:00
Christopher Jeffrey
442c984c12 improve p2sh building. change wallet key/redeem methods. 2016-01-10 21:43:52 -08:00
Christopher Jeffrey
eb1a3ea6d2 transaction improvements. 2016-01-10 04:58:03 -08:00
Christopher Jeffrey
0b7ca266ee tx/script refactor and improvements. 2016-01-09 19:02:19 -08:00
Christopher Jeffrey
314c14f422 input/output consistency. misc. 2016-01-09 13:22:08 -08:00
Christopher Jeffrey
6b10fabc5f tx refactor. etc. 2016-01-08 19:27:00 -08:00
Christopher Jeffrey
d56f7a3733 even more bufffer work. 2016-01-08 04:11:46 -08:00
Christopher Jeffrey
df420a4a8b refactor. work. 2016-01-08 02:22:35 -08:00
Christopher Jeffrey
afcb89f76f block and tx getters. coinbase height. multisig input test. 2015-12-24 13:19:29 -08:00
Christopher Jeffrey
389ee296b0 improve tx building. minor style fixes. utils.uniq. 2015-12-23 16:24:29 -08:00
Christopher Jeffrey
d32a951f37 fix isMultisig: compare to n value. 2015-12-23 11:45:43 -08:00
Christopher Jeffrey
d3e4dfaf5c fix some getters. move getInputData and getOutputData. wallet.toAddress. 2015-12-22 06:21: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
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
b20bcf701b fix private key encryption. style changes. 2015-12-19 14:00:23 -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
5791672c07 pass _network to tx. script debugging. tx filled total. 2015-12-18 13:01:23 -08:00