Commit Graph

137 Commits

Author SHA1 Message Date
ThomasV
a10e6b6436 fix xtype of ypub keys in plugins and bip39 seeds 2017-10-27 12:04:26 +02:00
ThomasV
24442de8df fix command line interface for hardware wallets. fixes #3056 2017-10-19 11:59:36 +02:00
SomberNight
4ac162f18b migration to PyQt5. initial commit. 2017-09-23 05:54:38 +02:00
BTChip
396c76f83f Check firmware version for Segwit related transactions, add native segwit support 2017-09-17 18:34:38 +02:00
ThomasV
63a1db1172 make xpub/xprv version information user-visible 2017-09-13 11:33:28 +02:00
ThomasV
e4659327a1 fix #2645: do not call tx.get_fee from plugin 2017-08-31 09:55:44 +02:00
BTChip
e49e3d6673 Python 3 and Segwit fixes 2017-08-30 22:49:03 +02:00
ThomasV
fbe27fce04 fix #2811 2017-08-28 05:30:56 +02:00
ThomasV
92c4968ca9 Merge pull request #2792 from neocogent/ledger-typo
Fix Ledger plugin help text grammar
2017-08-26 09:06:27 +02:00
ThomasV
e02687bcf2 python3 updates 2017-08-26 08:28:24 +02:00
ThomasV
c3388d9677 misc python3 updates:
- use jsonrpclib-pelix
 - update the kivy gui
 - update plugins
2017-08-26 08:28:24 +02:00
neocogent
e641f2d251 fix ledger help text grammar 2017-08-23 11:56:18 +07:00
ThomasV
7617fbf0ff fix default sequence number in ledger plugin 2017-08-08 09:26:05 +02:00
neocogent
b7c0e38ac4 fix spelling module name 2017-07-23 06:41:26 +07:00
ThomasV
853b6169ed hardware wallet support for locktime 2017-04-19 15:02:25 +02:00
ThomasV
f7096010f0 add segwit to get_preimage_script 2017-04-18 11:12:46 +02:00
ThomasV
79bda98ba2 cleanup unused code 2017-04-18 10:48:09 +02:00
ThomasV
9140c1fc89 fix #2352 2017-04-18 10:43:24 +02:00
ThomasV
7c93d787ed follow-up a610e21279 2017-04-13 11:58:42 +02:00
BTChip
6fdbeddf08 RBF support 2017-04-12 19:35:00 +02:00
BTChip
a610e21279 Segwit support 2017-04-12 19:15:43 +02:00
ThomasV
1d84029173 input_script: return txin.scriptSig if available. replace txin.is_coinbase with type. fixes #2321 2017-03-21 09:08:16 +01:00
BTChip
aa7434bdaa Fix CPFP on change 2017-03-11 13:13:20 +01:00
ThomasV
ddcdbfa181 ledger: pass str to message dialog 2017-03-02 08:42:49 +01:00
ThomasV
f9e948ebc1 updates for ledger plugin 2017-03-02 08:39:32 +01:00
ThomasV
4cfe98216e update ledger get_xpub 2017-01-30 10:10:21 +01:00
BTChip
0c4e26c55f Support testnet, display APDUs according to Electrum verbosity, support output streaming with btchip-python version 0.1.19 and BTC application 1.1.4+ 2017-01-25 01:34:35 +01:00
ThomasV
83a422988e ledger: ImportError fallback 2017-01-09 13:02:48 +01:00
neocogent
da7e48f3a7 ledger new ui and mobile 2fa validation 2017-01-09 12:56:38 +01:00
BTChip
1b4c03ecc5 Fix uninitialized HW.1/Nano and outputs swap with legacy firmware 2016-10-24 15:45:54 +02:00
ThomasV
4a5bece492 fix #1987 2016-10-20 08:38:13 +02:00
ThomasV
3f64e4d1f8 fix #1988 2016-10-20 08:23:10 +02:00
ThomasV
43272c63a8 fix #1961 2016-10-09 09:20:32 +02:00
ThomasV
dfef56491b simplification 2016-09-30 15:01:22 +02:00
ThomasV
f26262da0f fix ledger sign_transaction, issue #1938 2016-09-30 14:56:53 +02:00
ThomasV
56c490faf0 ledger: better message 2016-09-22 10:54:32 +02:00
ThomasV
5f038a4157 ledger plugin: parse xpubkey instead of using txin['derivation']; always use client.finalizeInputFull 2016-09-22 10:25:03 +02:00
ThomasV
ae779694df create common class for qt hardware plugins 2016-08-31 11:50:19 +02:00
ThomasV
2a9c9cf654 remove deprecated method 2016-08-31 08:31:19 +02:00
BTChip
57ce0f500a Fix setup for Nano S firmware version < 1.2 2016-08-28 22:22:58 +02:00
BTChip
3d2de1036c Rewrite around new dev manager, rebase to latest Electrum, add P2SH support, add Nano S / Blue support 2016-08-28 16:38:30 +02:00
ThomasV
9c7fd44b58 update ledger plugin 2016-08-21 22:44:42 +02:00
ThomasV
664077397e device manager: index devices by xpub 2016-08-20 20:54:15 +02:00
ThomasV
97417e06e4 updates for Legder plugin 2016-08-19 11:16:15 +02:00
ThomasV
1159f85e05 Major refactoring
- separation between Wallet and key management (Keystore)
 - simplification of wallet classes
 - remove support for multiple accounts in the same wallet
 - add support for OP_RETURN to Trezor plugin
 - split multi-accounts wallets for backward compatibility
2016-08-12 11:02:28 +02:00
Neil Booth
5f28834bb2 Trezor: session timeout improvements
Move session timeout from wallet to config
Prevent timeouts whenever a device operation is in progress
Move timeout job from each plugin to device manager
2016-02-10 21:59:41 +09:00
Neil Booth
9490debf0f hw_wallet: don't make watching only if cannot pair
Instead issue a warning.  Being watching-only disables
various functionality that should instead just ask again
for the PIN to be input.
2016-02-07 17:38:34 +09:00
ThomasV
2a908d3e8b hw_wallet: do not mix qt and non-qt imports 2016-01-30 13:48:52 +01:00
Neil Booth
012f500976 hw_wallet: Create HW_PluginBase and use it 2016-01-30 18:33:54 +09:00
Neil Booth
2717c80a91 ledger: remove unused imports 2016-01-30 18:00:51 +09:00
Neil Booth
9330750e82 Minor fix for prior
Restores to a BIP44_Wallet.  The other var is also in base class.
2016-01-30 17:44:19 +09:00
BTChip
1c8e39b635 Override word_dialog for PIN entry 2016-01-30 08:11:41 +01:00
BTChip
d4b84d6da1 Use unified HW classes 2016-01-30 07:46:19 +01:00
Richard Ulrich
4c24ea002c added local client variable 2016-01-27 20:47:49 +01:00
ThomasV
78e9a84c2f fix ledger signing issue 2016-01-27 16:54:28 +01:00
ThomasV
fe9ec6de06 reformatting 2016-01-26 13:51:47 +01:00
Neil Booth
efa1efedca Hardware wallets: limit change outputs to 1 2016-01-23 22:05:08 +09:00
ThomasV
d200b236ae replace tx.input, tx.output by methods, so that deserialize calls are encapsulated 2016-01-17 15:04:11 +01:00
ThomasV
0d52911561 define constants for tx output types 2016-01-14 17:15:50 +01:00
Neil Booth
986e198e87 Ledger: move get_client() to the plugin
Mirrors the trezor code
2016-01-11 15:08:12 +09:00
Neil Booth
deccca1827 Ledger: handler belongs on wallet
Move closer to trezor sanity
2016-01-11 14:38:45 +09:00
Neil Booth
1ec3ad59cc Ledger: get new wallet creation working again
This is enough to get new wallet creation working in the
absence of errors.
2016-01-11 14:23:35 +09:00
ThomasV
c47e3499ce rename wallet methods 2016-01-10 12:56:15 +01:00
Neil Booth
3d781a2d1b BIP32_HD_Wallet: Fix address derivation
Unfortunately there was root_name and root_derivation confusion
in the past for classes derived from BIP_32_HD_Wallet.
Address derivation used root_name and so would begin with 'x/'
whereas it should have begun with root_derivation, and so started
with 'm/'.

This fixes that old wart and removes some fudges from the trezor
code that used to work around it.
2016-01-10 20:06:13 +09:00
Neil Booth
5baa5feb11 Put restore_wallet_class back in the derived classes 2016-01-10 18:41:20 +09:00
Neil Booth
5e8d28a187 leger: remove unused imports 2016-01-10 17:43:02 +09:00
Neil Booth
9946feb352 Have BTChipWallet derive from BIP44_Wallet
Narrowing the gap with the Trezor code a bit
2016-01-10 17:38:39 +09:00
ThomasV
5915b9b7e1 restore action-driven wizard logic 2016-01-07 00:55:23 +01:00
Neil Booth
1d07960290 Remove constructor method of plugins
Clean up wallet class loading.
2016-01-02 00:16:15 +09:00
Neil Booth
d63e754c67 Remove some unused hook infrastructure 2016-01-01 19:15:01 +09:00
Neil Booth
2f58d419dc Get ledger wallet working, for restore at least
Fixes #1592
2016-01-01 18:38:43 +09:00
Neil Booth
93d05e8cfe Have close_wallet hook take a wallet. 2015-12-31 10:31:49 +09:00
Neil Booth
b8f2d9dfd4 Hardware wallets don't have seeds 2015-12-31 09:56:05 +09:00
Neil Booth
f263f8b0fd Convert legacy restored hardware wallets
Hardware wallets do not have a seed and hardware wallet
code should not have to worry about that case.
2015-12-31 09:51:27 +09:00
Neil Booth
19f527c717 Fix typo 2015-12-30 23:41:05 +09:00
Neil Booth
1d51335827 Remove need for self.wallet for h/w wallets 2015-12-30 17:03:26 +09:00
Neil Booth
84450b9189 Revert mistaken commit 2015-12-29 23:16:53 +09:00
Neil Booth
0f70d0b8a5 The constructor() concept doesn't exist
Did it ever?
2015-12-29 22:59:25 +09:00
Neil Booth
993ff30616 Eliminate dead code 2015-12-29 22:48:45 +09:00
Neil Booth
56497c1ae2 Don't use is_available() for HW wallets
is_available() is only used from generic code for non-hardware
wallets.  Having a local function of the same name is confusing.
2015-12-29 22:46:22 +09:00
Neil Booth
c298860e11 A fix and cleanups for hardware wallets 2015-12-26 12:02:19 +09:00
Neil Booth
64887f7a74 More message box cleanup 2015-12-23 20:42:30 +09:00
Neil Booth
15e9991e2a Move message box logic to a mixin 2015-12-23 15:10:15 +09:00
Richard Ulrich
ae3b82297f added missing import 2015-12-20 23:20:13 +01:00
ThomasV
d8e65782e1 ledger: cmdline plugin 2015-12-01 12:06:21 +01:00
ThomasV
d5f43610ed fix imports in hardware wallets 2015-12-01 10:00:39 +01:00
ThomasV
ba2c737a21 finish separation between plugins and GUIs 2015-11-24 09:36:42 +01:00