Commit Graph

669 Commits

Author SHA1 Message Date
Tafelpoot b3684ad40a add account info for internal transfer description 2014-10-30 17:56:36 +01:00
ThomasV 581ed1ed26 separate signtxwithkey and signtxwithwallet, and simplify sign_transaction 2014-10-30 16:36:29 +01:00
ThomasV cf1fbbf3ad fix is_watching_only for imported wallets 2014-10-27 15:47:10 +01:00
ThomasV 063fc4bb2e fix #895 2014-10-24 18:50:57 +02:00
Tafelpoot d9c5250a6f removed trailing whitespace and fixed indentation in history widget 2014-10-21 19:05:51 +02:00
ThomasV 590659ff4d get_tx_fee 2014-09-15 12:57:56 +02:00
ThomasV bde0ca3ea1 set default fee to 0.5mBTC/kb 2014-09-15 07:35:05 +02:00
ThomasV 8d396997dc fee estimate: kilobyte 2014-09-14 21:58:13 +02:00
ThomasV ad4449dc38 add v9 to list of tagged versions 2014-09-13 19:37:42 +02:00
ThomasV 1df007483e check seed_version first 2014-09-13 19:28:09 +02:00
ThomasV 5c5bb6ae3a make estimated fee higher than MIN_RELAY 2014-09-13 15:25:26 +02:00
ThomasV 5f4bcb420b param to addresses is optional 2014-09-13 14:54:02 +02:00
ThomasV b22048fdfb fix wallet constructor 2014-09-13 10:16:09 +02:00
ThomasV 43513adb5c seed_v9: strip whitespaces before hashing 2014-09-11 15:15:50 +02:00
ThomasV f3e2e7b501 fix for seed_version 2014-09-11 15:11:46 +02:00
ThomasV e22dfc443c check seed_version before wallet_type 2014-09-11 15:04:42 +02:00
ThomasV 93d073457c add spanish wordlist and remove accents 2014-09-11 14:20:10 +02:00
ThomasV e7c7dc8cc9 init fee variable in make_unsigned_transaction 2014-09-11 11:04:45 +02:00
ThomasV be1a21d974 call add_address in get_next_account 2014-09-10 10:33:49 +02:00
ThomasV 374daa25af create a PendingAccount if coins have been sent to next_account 2014-09-10 10:09:13 +02:00
ThomasV d2f4eed1f7 multi-account synchronization 2014-09-10 01:33:52 +02:00
ThomasV 0b7f8e74d5 move synchronize_account logic to account.py 2014-09-09 17:31:15 +02:00
ThomasV 1fb8af40c5 disable privkey export menu in trezor wallets 2014-09-09 14:30:57 +02:00
ThomasV c657212e5b fix: do not add zero change 2014-09-08 20:44:19 +02:00
ThomasV 01ad103c37 don't change fee if it is fixed by user 2014-09-08 09:29:25 +02:00
ThomasV bd6f21232d fix restore from mpk command line 2014-09-08 05:17:56 +02:00
ThomasV 67b9a59d34 better fees estimates 2014-09-07 20:36:29 +02:00
ThomasV 62179fad58 Merge pull request #772 from dabura667/fiximportchange
Make change address for imported keys the same
2014-09-06 16:59:53 +02:00
ThomasV b1ecb61105 fix oldwallet master_public_key 2014-09-05 17:30:19 +02:00
ThomasV 2b10ccdcc4 fix 2014-09-05 16:31:57 +02:00
ThomasV 622fb6c08b add wallet categories 2014-09-05 16:28:53 +02:00
ThomasV 0c8c21f64d minor fix 2014-09-05 12:08:09 +02:00
ThomasV 65d0560475 storage: deepcopy and sanitize json 2014-09-05 12:04:03 +02:00
ThomasV 6e363bc097 check length in OP_RETURN 2014-09-03 16:35:35 +02:00
ThomasV a2065eff72 use language in config to choose wordlist 2014-09-02 15:34:11 +02:00
ThomasV 5a20d07fb8 add hook: make_unsigned_transaction 2014-09-02 07:47:54 +02:00
ThomasV 79588eb4da init plugins before gui. register wallet types in plugin constructor 2014-08-31 15:33:20 +02:00
ThomasV c7f667e2ed separate add_seed from create_master_keys 2014-08-29 14:11:59 +02:00
ThomasV 4dcdcbc068 move mnemonic to separate class and use slush's wordlist. new commands: make_seed and check_seed 2014-08-28 15:37:42 +02:00
ThomasV 744eee6858 wizard integration 2014-08-26 16:23:24 +02:00
ThomasV ef74ae57ff fix tests 2014-08-25 15:32:21 +02:00
ThomasV 91723999aa add_cosigner_seed 2014-08-22 17:22:08 +02:00
ThomasV b63fcde503 root_name 2014-08-21 18:24:47 +02:00
ThomasV 8df2179025 class for xpub wallets 2014-08-21 18:24:47 +02:00
ThomasV 3a5f64fcc7 account key must be a string (json) 2014-08-21 18:24:47 +02:00
ThomasV 58e1dd2a24 update trezor plugin 2014-08-21 18:24:47 +02:00
ThomasV 61e737c380 wallet types 2014-08-21 18:24:47 +02:00
ThomasV 83b9ecac76 save wallet file as json 2014-08-21 18:24:47 +02:00
ThomasV f4b390a79f bip44 2014-08-21 18:24:47 +02:00
ThomasV 1d4631d647 bugfix for seed_v7 2014-08-21 18:19:56 +02:00
ThomasV f400e69d51 move two methods in subclasses 2014-08-19 13:03:29 +02:00
ThomasV cebc942ccb separate class for bip32 HD 2014-08-19 12:38:01 +02:00
ThomasV 20f93f7df0 set wallet.can_change_password and wallet.has_seed for trezor 2014-08-19 10:36:55 +02:00
ThomasV cf03f153d9 fix: get_master_public_key 2014-08-13 16:28:27 +02:00
ThomasV bf3f67c043 do not expose mnemonic_to_seed 2014-08-13 15:43:54 +02:00
ThomasV 606f1cd3f8 prevent seed collisions 2014-08-05 10:00:15 +02:00
ThomasV b93cde14e7 custom entropy in make_seed 2014-08-01 12:04:38 +02:00
ThomasV 10faf75ee7 wallet fixes 2014-07-30 12:46:03 +02:00
ThomasV ea29d9009d wallet.can_sign 2014-07-28 08:27:21 +02:00
ThomasV 035ecbc7cd redo inter-thread communication using pipes 2014-07-27 17:13:46 +02:00
dabura667 8722a37f13 Make change address for imported keys the same
Fixes #769
2014-07-26 15:24:55 +09:00
ThomasV a195ca5c07 fix: check if wallet has master_private_keys 2014-07-14 03:21:51 +02:00
ThomasV 43d2fab9a0 get_seed -> check_password 2014-07-14 02:57:12 +02:00
ThomasV 98acf49b4e fix get_pubkeys call 2014-07-14 02:39:14 +02:00
ThomasV 20c7bef7ac rm dead code 2014-07-14 02:27:51 +02:00
ThomasV b8f64ad46f rm get_address_flags (no longer used) 2014-07-14 02:23:27 +02:00
ThomasV b04256b474 load_transactions 2014-07-14 02:20:24 +02:00
ThomasV 3c7346ee9c load imported_keys outside of load_accounts 2014-07-14 02:15:29 +02:00
ThomasV a471859a3a move master_private_keys and master_public_keys to NewWallet 2014-07-14 02:08:21 +02:00
ThomasV e2717284eb Merge pull request #749 from chrisglass/clean-tests-wallet
Add tests to the wallet.py module.
2014-07-10 02:58:51 +02:00
ThomasV 042c65939d don't use address_is_old in code that can be run offline 2014-07-09 18:23:33 +02:00
Chris Glass a9592459ed Add tests to the wallet.py module.
This increases test coverage a lot.
2014-07-09 11:03:44 +02:00
ThomasV 6ad1c46aa5 fix: add type 'aaddress' in change output 2014-07-08 23:53:20 +02:00
ThomasV 1bb00ff5af store output type explicitly in tuple 2014-07-08 19:38:16 +02:00
ThomasV 769b4002cd fix: get_action 2014-07-07 23:35:01 +02:00
ThomasV 0ce2c870bb fixes for pending accounts 2014-07-07 15:43:02 +02:00
ThomasV 5ce50f4421 get_master_public_key: always return xpub of main account 2014-07-06 23:20:27 +02:00
ThomasV 2e1d24939c rm duplicate method getpubkey 2014-07-06 22:24:09 +02:00
ThomasV b5b5edbee7 add_keypairs: simplification 2014-07-06 22:10:26 +02:00
ThomasV a89abee969 Rewrite accounts and transactions: store pubkeys instead of addresses in order to avoid unnecessary derivations. 2014-07-06 21:10:41 +02:00
ThomasV 0511d7e76f fix: get_action should call get_master_public_key 2014-07-01 19:17:43 +02:00
ThomasV 2c38e85a50 better integration of plugins in installwizard (for 2fa, trezor plugins) 2014-07-01 18:46:11 +02:00
ThomasV 20060a1177 fix #745 2014-06-30 17:59:36 +02:00
ThomasV 2efad717d8 support for OP_RETURN 2014-06-27 17:08:20 +02:00
ThomasV 7a7e65d66c optional parameters for create_new_address 2014-06-27 11:38:35 +02:00
ThomasV b5acdab3e9 allow address creation beyond gap limit in GUI. fixes #512 2014-06-26 18:55:22 +02:00
ThomasV 38f5deee86 use an input queue in synchronizer, so that new addresses can be created from other threads 2014-06-26 17:41:09 +02:00
ThomasV 54973062bd restore from xprv 2014-06-25 16:45:55 +02:00
ThomasV 8795e1a746 Comment on wallet classes. Use address_is_old to check if address is beyond gap limit 2014-06-25 10:53:06 +02:00
ThomasV 0c440ee6a6 wallet.is_beyond_limit (False for imported accounts) 2014-06-24 20:47:44 +02:00
ThomasV 0c6d470296 various bugfixes for imported addresses 2014-06-24 16:47:58 +02:00
Chris Glass 2765b66411 Removed uselss comment. 2014-06-24 15:48:50 +02:00
Chris Glass 01f3e31c6b First cleanup branch commit
This fixes some import and whitespace issues to align closer to pep8.
I added a few comments to make further contributions easier.
2014-06-24 16:12:43 +03:00
ThomasV 2c7bf3ca1a detect if wallet can sign tx before showing sign button 2014-06-24 13:22:10 +02:00
ThomasV b32d0c77a3 fix bug with the order of signatures in tx input 2014-06-23 09:42:07 +02:00
ThomasV 785b54f8f4 fix add_keypairs: support old wallets 2014-06-21 21:39:57 +02:00
ThomasV 85505c1d8e cleanup (dead code) 2014-06-21 21:17:40 +02:00
ThomasV 0636ef8b32 compact serialized format for unsigned and partially signed transactions. 2014-06-21 21:06:09 +02:00
ThomasV 86aba082e1 fix bug #718 2014-06-11 13:10:48 +02:00
ThomasV 38a6747eff fix: sanitize outputs 2014-06-06 07:48:08 +02:00
ThomasV e699ab6660 coin control: select UTXOs in menu 2014-06-05 21:55:11 +02:00
ThomasV 194291c80b update imported keys 2014-06-02 08:59:41 +02:00
ThomasV 501bb92584 Remove Bitcoin address from serialized encryption format. Enable encrypt commands, fix ser_to_point() and add some tests 2014-05-28 12:20:04 +02:00
ThomasV adb53e4c41 fix #699 2014-05-21 22:04:10 +02:00
ThomasV 35c270e075 explicit type for imported wallets. fixes #698 2014-05-21 16:04:58 +02:00
ThomasV c3676cc6e6 wallet.is_used() method 2014-05-12 11:28:00 +02:00
ThomasV a66df2a3fa multi seed and mpk dialogs 2014-05-12 10:53:04 +02:00
ThomasV 0fb6cdcb1a add 2of3 wallets in wizard 2014-05-09 16:27:12 +02:00
ThomasV a18d21d946 fix cmd line wallet creation. fixes #684 2014-05-08 15:18:38 +02:00
ThomasV 2642b7e126 can_import 2014-05-07 11:53:32 +02:00
ThomasV 7f67b36a19 fix: num_accounts should return only confirmed bip32 accounts 2014-05-05 12:17:25 +02:00
ThomasV fa4c2b96d7 p2sh wallets cannot create accounts 2014-05-05 12:03:01 +02:00
ThomasV 97a6f91451 fix: is_address, is_private_key: check that text is not empty 2014-05-05 10:03:31 +02:00
ThomasV 90f5133983 utf8 encode seed (old wallets) 2014-05-05 01:19:04 +02:00
ThomasV 430c7aa92e fix: get_seed 2014-05-04 19:52:47 +02:00
ThomasV c9fc6275ab move private key methods from wallet to accounts 2014-05-04 19:43:15 +02:00
ThomasV 9b8ad42a66 id of imported account 2014-05-04 14:13:34 +02:00
ThomasV e9968e4a39 imported_keys and accounts 2014-05-04 13:46:37 +02:00
ThomasV 4a33cf256b remove dead code: get_imported_balance 2014-05-04 12:54:35 +02:00
ThomasV 09a2254739 fix #676 2014-05-04 10:22:35 +02:00
ThomasV 0536f256cf fix: imported_account 2014-05-02 12:41:37 +02:00
ThomasV 2a938ad516 fix: pending accounts 2014-05-02 11:19:02 +02:00
ThomasV fdf8697e58 handle pending and imported accounts using account child classes 2014-05-02 11:10:12 +02:00
ThomasV 95df9cd103 fix bugs on wallet creation 2014-05-01 18:58:24 +02:00
ThomasV 3faeb7eab6 define check_password for imported wallets 2014-05-01 13:08:12 +02:00
ThomasV ace127ee43 fix password dialog, for imported wallets 2014-05-01 12:42:06 +02:00
ThomasV 95fce65e12 disable wallet menus when they do not apply 2014-05-01 12:19:24 +02:00
ThomasV 84052bcdb2 fix bug with has_seed 2014-04-30 15:44:46 +02:00
ThomasV 9c37ed68f4 wallet.has_seed 2014-04-30 11:40:53 +02:00
ThomasV 56e8ad3397 cleanup wallet classes 2014-04-30 11:18:13 +02:00
ThomasV 17216da392 can_create_account 2014-04-30 10:40:47 +02:00
ThomasV 7e0711f6ec move synchronizer class in its own file. abstract wallet class. 2014-04-30 10:32:40 +02:00
ThomasV 582fb76e9e new class: Imported_Wallet 2014-04-29 21:04:16 +02:00
ThomasV 0ba73dfc95 restore get_master_public_key function. fixes #668 2014-04-29 12:26:58 +02:00
ThomasV 5d68ce4f22 wizard: option to create multisig wallet manually 2014-04-29 11:45:39 +02:00
ThomasV 70a638a7c3 more robust install wizard 2014-04-28 17:30:48 +02:00
ThomasV 5a02836933 fix input_info for signrawtransaction 2014-04-26 18:44:45 +02:00
ThomasV 0c100c1480 add_cold_seed 2014-04-25 17:51:41 +02:00
ThomasV 217900bbfa watching_only wallets have a single account 2014-04-25 11:48:13 +02:00
ThomasV 1662a9e9c5 fix: get_master_public_key 2014-04-25 10:39:07 +02:00
ThomasV a1daba6afe get_master_public_keys 2014-04-25 10:16:07 +02:00
ThomasV a3dd9f700c no accounts in multisig wallets 2014-04-24 14:29:08 +02:00
ThomasV 26c65dd65f lower default fee. fixes #403 2014-04-23 16:10:01 +02:00
ThomasV 5d9b9492e1 abstract and improve seed and key methods 2014-04-21 22:09:15 +02:00
ThomasV 41f9da1559 fix #655 2014-04-20 10:42:13 +02:00
ThomasV 6c96b38abf installwizard: multisig wallets 2014-04-19 20:23:27 +02:00
ThomasV 80a988e337 slightly better notifications. at least, it fixes #652 2014-04-17 17:38:21 +02:00
ThomasV 8a7a6f347b fix #661 2014-04-17 17:05:36 +02:00
ThomasV 1751c3ac7f fix: public instead of private 2014-04-09 07:36:33 +02:00
ThomasV 102bc204d5 hooks and workflow for 2of3 wallets 2014-04-06 21:38:53 +02:00