Commit graph

53 commits

Author SHA1 Message Date
Janus
097ac144d9 file reorganization with top-level module 2018-07-13 14:01:37 +02:00
SomberNight
79f4a8bae9
ledger: support hiding outputs on 'receive' branch
so if change is on the 'receive' branch, user won't be prompted to confirm it
2018-06-15 20:48:57 +02:00
SomberNight
0438bbc2c2
transaction.py: change update_signatures API. fix trezor segwit signing.
Traceback (most recent call last):
  File "...\electrum\lib\transaction.py", line 498, in parse_witness
    if txin['witness_version'] != 0:
KeyError: 'witness_version'
2018-06-14 20:13:04 +02:00
matejcik
208606beda trezor: do not rely on deprecated ckd_public (#4416) 2018-06-08 17:07:49 +02:00
SomberNight
9bd082cd82
trezor/keepkey: better handling of exceptions during device initialization
notably Trezor T is returning a different msg type when trying to get an xpub from an uninitialized device, which we are not handling. instead we should just realise ourselves that we did not initialize the device
2018-05-29 13:37:30 +02:00
ghost43
4eeb944b3c
Merge pull request #4329 from SomberNight/trezor_matrix
Trezor: Matrix recovery support
2018-05-09 19:11:12 +02:00
SomberNight
5fafd34de7
don't offer recovery type choice for trezor T 2018-05-09 19:08:21 +02:00
SomberNight
c133e00590
hw wallets: define SUPPORTED_XTYPES for each plugin 2018-05-09 18:17:49 +02:00
SomberNight
dc2f8ee804
fix regression from 1d6f000868
re trezor/keepkey multisig signing
2018-05-09 18:14:22 +02:00
SomberNight
8174c31f13
trezor: implement "backend" support for p2sh-segwit and native-segwit multisig 2018-05-09 16:50:30 +02:00
SomberNight
e523b65767
hw wallets: test client is not None during setup_device 2018-05-06 14:45:03 +02:00
SomberNight
364cfd17ae
abstract qt away from trezor 2018-05-01 23:29:51 +02:00
SomberNight
809d6aefca
finish prev 2018-05-01 22:50:06 +02:00
SomberNight
034b0a0313
trezor/keepkey: silence UserCancelled during recovery 2018-05-01 22:49:43 +02:00
SomberNight
66cfc3ea37
hw_wallet: show_error can now block optionally. trezor: use prev during recovery. 2018-05-01 15:05:58 +02:00
SomberNight
ba7d905dfb
trezor/keepkey: catch exception during device init 2018-05-01 14:47:50 +02:00
SomberNight
688dd07381
qt receive tab: show address on hw wallet 2018-04-27 03:21:27 +02:00
Dimitris Apostolou
989c9c2b55 Fix typos 2018-04-15 20:34:40 +02:00
SomberNight
3b8c1c6c04
detect when trying to sign with a hw wallet offline in a not supported config
closes #4229
2018-04-06 18:29:41 +02:00
SomberNight
fb65493963 remove unused variable 2018-03-30 22:31:29 +02:00
SomberNight
7d11812f55 trezor/keepkey/dbb: provide info for all is_mine txn outputs 2018-03-20 02:04:41 +01:00
SomberNight
680df7d6b6 trezor: move the transport-related reimplemented parts into a separate module. disable the bridge transport.
The bridge transport uses requests.post, which uses socket.getaddrinfo under the hood, which on some OSes (MacOS, Windows) in CPython takes a lock. The enumerate method for the bridge transport can block for 10-30 seconds while waiting for this lock.
2018-03-16 23:19:52 +01:00
SomberNight
afa4cbfcbb fix #4082 2018-03-15 18:34:30 +01:00
SomberNight
38d94bfa7a fix #4082 2018-03-15 13:06:21 +01:00
SomberNight
c1d14b9677 trezor: try and allow transports to fail independently
related: #4060
2018-03-08 02:45:39 +01:00
SomberNight
81b6d65764 refactor network constants 2018-03-04 22:10:59 +01:00
SomberNight
0df6d1ec97 trezor: segwit offline signing 2018-03-03 02:39:49 +01:00
SomberNight
6c4756dc3d check trezorlib version 2018-02-07 17:51:52 +01:00
slush
d3b94d9353 Small refactoring; removed one layer of unnecessary abstraction. 2018-02-06 21:15:18 +01:00
slush
460e88ee53 hw plugins: Allow custom enumerate functions
trezor: Adding support for all supported transports (HID, WebUSB, UDP, Bridge)
2018-02-06 19:13:05 +01:00
slush
dda9d4b746 Updated TREZOR plugin to work with trezorlib>=0.9.0. 2017-12-29 20:36:51 +01:00
slush
a30d59912e Updated TREZOR plugin to work with trezorlib>=0.8.0. 2017-12-29 20:36:51 +01:00
ThomasV
ab15ff3a00 updates for python3 2017-08-26 08:28:24 +02:00
ThomasV
eb60e0d2e0 fix hw_type 2016-08-21 22:15:17 +02:00
ThomasV
55aa29917d Do not use side-effects of import to initialize hardware plugins
Call HidTransport in the context of a function
2016-08-15 12:28:31 +02:00
ThomasV
b436042c89 partially revert fdb810ba62 2016-08-13 14:15:29 +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
slush0
fdb810ba62 Fixed TREZOR plugin to work with python-trezor>=0.7.0 (to be released). 2016-06-27 17:16:55 +02:00
slush0
18b7337aea Use Bridge transport if available; implementing #1139
Bumping required TREZOR firmware to 1.3.3 (includes important fixes)
2016-05-06 05:44:23 +02:00
Pavol Rusnak
6ce12ca1dc
fix spelling of TREZOR and SatoshiLabs 2016-01-29 14:58:51 +01:00
Neil Booth
f271f65842 KeepKey / Trezor: client split
We're going to want to do a few things differently, such as
device recovery.  So move the client code to clientbase.py
and create a per-plugin client.py file for the derived client
class.
2016-01-15 13:44:32 +09:00
Neil Booth
3d9f321cae Use a shared device manager
Use a shared device manager across USB devices (not yet taken
advantage of by ledger).  This reduces USB scans and abstracts
device management cleanly.

We no longer scan at regular intervals in a background thread.
2016-01-06 07:56:58 +09:00
Neil Booth
e4269f2684 Use relative imports. 2016-01-02 23:34:10 +09:00
Neil Booth
11d135b32d Better install wizard
Break out the workflow logic of the install wizard
into a base class.  This means reimplementing with
full support in a new GUI is now easy; you just provide
ways to request passwords, show messages etc.  The API
is fully documented in the base class.

There are a couple of minor outstanding issues, including that
the old messages shown when recovering a wallet are missing.
I will come back to that.  Ledger wallet might be broken.

Other improvements:

The install wizard code is now easy to follow and understand.
Hardware wallets can now be restored without any need for their
accompanying libraries.
Various bits of trustedcoin were broken and have been fixed.
Many plugin hooks can be removed.  I have only started on this.
2016-01-01 16:48:18 +09:00
Neil Booth
11e1c62f28 Move hardware wallet to trezor/
On second thoughts it does go better there.
2015-12-27 18:23:46 +09:00
Neil Booth
f3329988b2 More keepkey / trezor commonizing and cleanup 2015-12-27 13:56:50 +09:00
Neil Booth
33e57fe5a7 Share non-GUI plugin parts of KeepKey and Trezor 2015-12-26 19:42:57 +09:00
Neil Booth
42719cd0a9 Commonize GuiMixin for keepkey and trezor 2015-12-26 18:48:07 +09:00
Neil Booth
3a1bb5b61a Combine keepkey and trezor wallet code
Essentially identical so silly to have two copies.
Also fix a double-dialog during sign bug that caused one to not
disappear (on MacOSX at least).
2015-12-26 16:25:10 +09:00
Neil Booth
96c7f9e7cb Partially revert prior 2015-12-26 12:23:35 +09:00