SomberNight
6760c3f252
hw wallets: introduce HardwareHandlerBase
...
previously, client.handler was sometimes
- an InstallWizard
- a QtHandlerBase where win was an ElectrumWindow
- a QtHandlerBase where win was an InstallWizard
- a CmdLineHandler
That's just too much dynamic untyped undocumented polymorphism...
Now it will never be an InstallWizard (replaced with QtHandlerBase where win is an InstallWizard),
and now in all cases client.handler is an instance of HardwareHandlerBase, yay.
related: #6063
6 years ago
SomberNight
d2f132738a
wallet: only select mature coins by default
...
this is a regression from #5721
Removed the `TxInput.is_coinbase` method as I think it is a confusing API,
instead we now have `TxInput.is_coinbase_input` and `TxInput.is_coinbase_output`.
related #5872
6 years ago
SomberNight
c2b0039935
bitcoin.py: remove some remnants of TYPE_ADDRESS, TYPE_SCRIPT
6 years ago
SomberNight
cc4f6804b0
psbt: follow-ups: fix trezor
6 years ago
SomberNight
bafe8a2fff
integrate PSBT support natively. WIP
6 years ago
SomberNight
ab76a1fe5b
wallet.add_hw_info: also store "is_change" in output_info
...
as it seems every consumer wants to know this and has its own hacks to
figure it out
6 years ago
SomberNight
f60f690ca9
change many str(e) to repr(e) as some exceptions were cryptic
...
it's often valuable to see the type of the exception
(especially as for some exceptions str(e) == '')
7 years ago
SomberNight
3385a94753
logging: basics
7 years ago
SomberNight
85a7aa291e
bip32: refactor whole module. clean-up.
7 years ago
SomberNight
7bbec04a06
trezor: implement "seedless" mode (option during initialization)
7 years ago
SomberNight
0f0cee422e
trezor and clones: sign tx version too
7 years ago
SomberNight
32af83b7ae
wizard/hw: show transport type when listing HWDs
7 years ago
SomberNight
bd32b88f62
introduce UserFacingException
...
we should not raise generic Exception when wanting to communicate with
the user. it makes distinguishing programming errors and messages hard,
as the caller will necessarily need to catch all Exceptions then
7 years ago
SomberNight
a88a2dea82
split bip32 from bitcoin.py
7 years ago
SomberNight
ab1ec57429
trezor and clones: rm dead code
...
see Electron-Cash/Electron-Cash#872
see Electron-Cash/Electron-Cash#874
7 years ago
SomberNight
6f0dceb152
fix #4726
...
follow-up 88fc62e8f7
7 years ago
SomberNight
91c369e392
hw wallets: generalise 'minimum_library' for those that provide a version number
7 years ago
SomberNight
88fc62e8f7
fix #4626
7 years ago
SomberNight
5f3408dd70
transaction.py: introduce TxOutputHwInfo namedtuple
7 years ago
SomberNight
2eb72d496f
transaction: introduce TxOutput namedtuple
7 years ago
SomberNight
c9c8b7656d
follow-up prev. sanity check OP_RETURN outputs
...
based on 86c63a3a08
7 years ago
SomberNight
e1b2195cf7
fix #4591 : pay to OP_RETURN on trezor
7 years ago
Jean-Christophe Rona
02c30e3d52
Add support for Archos Safe-T mini hardware wallet ( #4445 )
...
commit 10c46477f3a6f2fbc0596345511e0994253081eb
Author: SomberNight <somber.night@protonmail.com>
Date: Wed Jul 25 19:40:05 2018 +0200
backport changes of trezor plugin
commit 213619e880f709188c1ea6272758896748e681a8
Merge: a855b75b6 6899ca252
Author: Jean-Christophe Rona <jc@rona.fr>
Date: Wed Jul 25 18:45:19 2018 +0200
Merge branch 'master' into safe-t-mini
commit a855b75b6f5af5f707c4680d0bac79eb66a85ace
Author: Jean-Christophe Rona <rona@archos.com>
Date: Wed Jul 25 18:37:12 2018 +0200
Safe-T: Switch to safet 0.1.3 to remove the rlp dependency
commit 9bee44ca33289158c91c03d47dec45de6577f17b
Author: SomberNight <somber.night@protonmail.com>
Date: Wed Jul 18 14:01:10 2018 +0200
safe-t: bump min fw to 1.0.5
older fw has a bug when restoring from seed
commit 01816607e8ba308cb5cff96b5fb844e4f6b8fcc1
Author: SomberNight <somber.night@protonmail.com>
Date: Wed Jul 18 13:57:17 2018 +0200
safe-t: fix rlp version to avoid eth stuff
commit 430206bea1fa10b762ff953fbc7652ce0d0e939d
Merge: a999ae266 b4b862b0c
Author: SomberNight <somber.night@protonmail.com>
Date: Wed Jul 18 13:29:41 2018 +0200
Merge branch 'master' into pr/4445
commit a999ae266f499f180946d53d4e860cc871d562ab
Author: Jean-Christophe Rona <rona@archos.com>
Date: Tue Jun 19 14:18:03 2018 +0200
Safe-T mini: Remove supported coins
This is not really useful there.
commit 7922df1031b2c4b132f7f9c90232480b5bf9585c
Author: Jean-Christophe Rona <rona@archos.com>
Date: Tue May 29 16:43:37 2018 +0200
Safe-T mini: Add support for the Safe-T mini
8 years ago
SomberNight
8f17f38b02
trezor/kk: when using old fw, wizard did not display instructions properly
8 years ago
Yura Pakhuchiy
27b36486df
Trezor: fix spending coinbase outputs ( #4565 )
...
Attempt to spend coinbase output results in error:
a bytes-like object is required, not 'str'
8 years ago
Janus
097ac144d9
file reorganization with top-level module
8 years ago
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
8 years ago
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'
8 years ago
matejcik
208606beda
trezor: do not rely on deprecated ckd_public ( #4416 )
8 years ago
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
8 years ago
SomberNight
5fafd34de7
don't offer recovery type choice for trezor T
8 years ago
SomberNight
c133e00590
hw wallets: define SUPPORTED_XTYPES for each plugin
8 years ago
SomberNight
dc2f8ee804
fix regression from 1d6f000868
...
re trezor/keepkey multisig signing
8 years ago
SomberNight
8174c31f13
trezor: implement "backend" support for p2sh-segwit and native-segwit multisig
8 years ago
SomberNight
e523b65767
hw wallets: test client is not None during setup_device
8 years ago
SomberNight
364cfd17ae
abstract qt away from trezor
8 years ago
SomberNight
809d6aefca
finish prev
8 years ago
SomberNight
034b0a0313
trezor/keepkey: silence UserCancelled during recovery
8 years ago
SomberNight
66cfc3ea37
hw_wallet: show_error can now block optionally. trezor: use prev during recovery.
8 years ago
SomberNight
ba7d905dfb
trezor/keepkey: catch exception during device init
8 years ago
SomberNight
688dd07381
qt receive tab: show address on hw wallet
8 years ago
Dimitris Apostolou
989c9c2b55
Fix typos
8 years ago
SomberNight
3b8c1c6c04
detect when trying to sign with a hw wallet offline in a not supported config
...
closes #4229
8 years ago
SomberNight
fb65493963
remove unused variable
8 years ago
SomberNight
7d11812f55
trezor/keepkey/dbb: provide info for all is_mine txn outputs
8 years ago
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.
8 years ago
SomberNight
afa4cbfcbb
fix #4082
8 years ago
SomberNight
38d94bfa7a
fix #4082
8 years ago
SomberNight
c1d14b9677
trezor: try and allow transports to fail independently
...
related: #4060
8 years ago
SomberNight
81b6d65764
refactor network constants
8 years ago