Commit Graph

114 Commits

Author SHA1 Message Date
SomberNight 2457ac8774 fix #3091 2017-10-22 23:47:11 +02:00
ThomasV e02687bcf2 python3 updates 2017-08-26 08:28:24 +02:00
Dmitry Sorokin 362ca96f38 x509 fixes and plugins 2017-08-26 08:28:24 +02:00
Dmitry Sorokin 5be78950ca py3 2017-08-26 08:27:47 +02:00
djb 91deea89da
identify HID devices also by interface and usage page 2017-06-23 11:46:50 +02:00
ThomasV 13678d9e13 Merge exchange_rate plugin with main code
* fixes #2037 (tab indexes)
2017-01-03 17:04:04 +01:00
ThomasV 323188b963 devmgr: if only one device is plugged, use it 2016-08-31 15:15:55 +02:00
BTChip a88036bc51 When no serial number is available, use the path as a temporary one 2016-08-28 16:33:34 +02:00
ThomasV 49a5994b29 use another lock for hid operations 2016-08-27 15:46:01 +02:00
ThomasV 47f1a7b632 move update_status in handler 2016-08-27 14:56:31 +02:00
ThomasV 257c0915b5 fix deadlocks 2016-08-27 13:33:26 +02:00
ThomasV b07d3466c0 new icons to show hardware wallet pairing in status bar 2016-08-27 11:30:53 +02:00
ThomasV 33c7787941 plugins: do not assume that handler belongs to keystore 2016-08-27 09:46:02 +02:00
ThomasV f7efedf8a0 query_info: raise if user cancelled 2016-08-26 12:26:43 +02:00
ThomasV 4189d9343d minor fix: return client 2016-08-26 12:00:33 +02:00
ThomasV 86e23d9989 save wallet label in keystore, to facilitate pairing 2016-08-26 11:45:12 +02:00
ThomasV 4837d7a148 show complete device description in wizard 2016-08-25 15:31:21 +02:00
ThomasV 6b0e65fc0a fixes for hardware wallets 2016-08-24 19:37:29 +02:00
ThomasV 8edca91390 wizard: trezor init 2016-08-24 05:58:41 +02:00
ThomasV 4781df9d21 wizard: scan hardware devices directly 2016-08-23 13:40:11 +02:00
ThomasV 0520eda628 device manager: remove seemingly unused parameter 2016-08-23 10:36:20 +02:00
ThomasV afe39330dc update wallet format again, for keystore 2016-08-21 11:58:15 +02:00
ThomasV 664077397e device manager: index devices by xpub 2016-08-20 20:54:15 +02:00
ThomasV 24a9ff3fef simplify wallet types 2016-08-19 17:35:58 +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
ThomasV 8ae1dc4d09 do not register unsupported wallet types, because they are proposed in the install wizard 2016-06-25 19:32:43 +02:00
ThomasV bbe7b277d2 call jnius.detach on thread stop 2016-06-04 12:59:01 +02:00
ThomasV 305843999e Relicensing 2016-02-24 10:20:30 +01:00
Neil Booth 535956149a trezor: single passphrase entry
Only require the user to input the passphrase once, unless creating
a wallet.
Should they mis-enter the passphrase, they will be warned Electrum
couldn't pair the device, and when they actually need to use it
they will be prompted again.
Fixes #1672
2016-02-11 19:54:55 +09:00
Neil Booth 34e8c0e1ed plugins: give traceback when cannot load 2016-02-11 19:16:49 +09: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 b54ba556bc Wallet: encapsulate wallet_types
Previously plugins would append lines to it and wizard.py would
hack into it too.
2016-02-08 22:32:49 +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
Neil Booth 16397b1ed7 trezor: more user friendly when cannot connect
Tell the user and ask if they want to try again.  If they
say no, raise a silent exception.  Apply this more friendly
behaviour to the install wizard too (see issue #1668).
2016-02-06 19:51:39 +09:00
Neil Booth 828320c1af trezor: provide a default interface number. 2016-02-06 14:37:38 +09:00
Neil Booth e61fffab55 Trezor/KeepKey: force watching only improvements
Only warn about watching only once given a chance to pair.
Failure to pair makes watching-only and warns.
In error message to user, distinguish between failure to connect
and failure to pair.
2016-01-31 19:36:21 +09:00
Neil Booth 412e2a8d2c Create is_pairable() function and use it.
Fixes #1653.
2016-01-29 19:26:05 +09:00
Neil Booth bf942b5259 Trezor: another place needs client handler set 2016-01-27 21:27:51 +09:00
Neil Booth 268dcbcac5 Trezor: multi-device window parenting fix 2016-01-24 23:18:41 +09:00
Neil Booth 93e0c72ce2 Plugins: start thread at end of constructor
Don't add jobs twice
2016-01-24 19:59:58 +09:00
Neil Booth 80e15577b5 Update comment 2016-01-24 19:45:13 +09:00
Neil Booth dee402b961 Plugin wallets: better error when unloadable
Used to get:

jsonrpclib.jsonrpc.ProtocolError: (-32603, u'Server error:   File "src/electrum/lib/plugins.py", line 144, in wallet_plugin_loader | KeyError: \'trustedcoin\'')

Now get:

jsonrpclib.jsonrpc.ProtocolError: (-32603, u'Server error:   File "src/electrum/lib/plugins.py", line 81, in load_plugin | RuntimeError: cmdline implementation for trustedcoin plugin not found')
2016-01-24 19:39:59 +09:00
Neil Booth f4fa53e915 Trezor: fixes for latest libtrezor
We were relying on internals of libtrezor that they just
changed.  However their changes don't work on Mac either.
Work around both issues.  I think this...

Fixes #1637
2016-01-24 14:33:21 +09:00
Neil Booth f8ed7b058d Improved multi-device handling
Ask user which device to use when there are many.  If there
is only one skip the question.  We used to just pick the
first one we found; user had no way to switch.

We have to handle querying from the non-GUI thread.
2016-01-24 13:41:03 +09:00
Neil Booth 0d14781463 Trezor: GUI fixes
Trezor window was doing GUI stuff outside the GUI thread
2016-01-21 23:33:15 +09:00
Neil Booth 24037be99c Clean up client caching and handling 2016-01-21 22:56:53 +09:00
ThomasV 858b9c5655 kivy: improve settings dialog 2016-01-21 12:12:55 +01:00
ThomasV 4122c108fc plugins: enable & disable methods 2016-01-19 10:03:05 +01: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
Neil Booth 2f1d6b2379 Have Trezor dialog work even if wallet unpaired
Required cleanup of handler logic.  Now every client
is constructed with a handler, so there is never a
question of not having one.
2016-01-09 17:15:31 +09:00