SomberNight
b5d3f1458a
hww: impl get_client in Hardware_KeyStore instead of subclasses
4 years ago
SomberNight
98feff07ad
threading.Thread: fix some DeprecationWarnings
...
"DeprecationWarning: setDaemon() is deprecated, set the daemon attribute instead"
4 years ago
SomberNight
d5f987c9e9
hw keepkey: workaround protobuf weirdness
...
this adds a hackish workaround for https://github.com/spesmilo/electrum/issues/7779
4 years ago
SomberNight
376fc01b27
keystore.sign_message: add optional script_type argument
...
this is used by trezor
(and also by bitbox02, which was using a workaround previously)
fixes https://github.com/spesmilo/electrum/issues/7670
4 years ago
Benoit Verret
f731c38293
Minor style changes
5 years ago
SomberNight
eefb68c82b
transaction: change Transaction.is_segwit_input(txin) to txin.is_segwit()
5 years ago
ghost43
21c3572600
hardware devices: run all device communication on dedicated thread ( #6561 )
...
hidapi/libusb etc are not thread-safe.
related: #6554
5 years ago
SomberNight
98d2ab5bd6
hww: fix HardwareClientBase not having reference to plugin
...
it was incorrectly documented that it did (previously only for some plugins)
6 years ago
SomberNight
e830ef309f
hww: factor out part of hid scan code to HW_PluginBase
...
so that bitbox02 can override it
6 years ago
SomberNight
4b1d835304
wizard hww: scan devices fewer times and move away from GUI thread
6 years ago
SomberNight
4ef313a1ac
hww: smarter auto-selection of which device to pair with
...
scenario1:
- 2of2 multisig wallet with trezor1 and trezor2 keystores
- only trezor2 connected
- previously we would pair first keystore with connected device and then display error.
now we will pair the device with the correct keystore on the first try
scenario2:
- standard wallet with trezor1 keystore
- trezor2 connected (different device)
- previously we would pair trezor2 with the keystore and then display error.
now we will prompt the user to select which device to pair with (out of one)
related: #5789
6 years ago
SomberNight
9d0bb295e6
hww: distinguish devices based on "soft device id" (not just labels)
...
fixes #5759
6 years ago
SomberNight
caefea19dd
trezor pin dialog: only show PIN "strength" when creating/changing
...
fixes #4832
6 years ago
SomberNight
371f55a0f9
hww: fix some threading issues in wizard
...
fixes #3377
related: #6064 (passphrase dialog not rendered correctly)
6 years ago
SomberNight
81fc3fcce2
hww: rm some code duplication: add "scan_and_create_client_for_device"
6 years ago
SomberNight
e6d43b60fa
qt hww show_settings_dialog: don't scan devices in GUI thread
...
Just makes sense in general.
Also, previously, the GUI would freeze if right after startup the user
clicked the hww status bar icon (especially with multiple hww connected).
6 years ago
SomberNight
7f1c7955dc
DeviceMgr: clean-up locks a bit
6 years ago
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
a8e81c0bd2
keepkey: use libusb to enumerate devices instead of hid
6 years ago
SomberNight
c2b0039935
bitcoin.py: remove some remnants of TYPE_ADDRESS, TYPE_SCRIPT
6 years ago
SomberNight
f8c84fbb1e
hardware wallets: create base class for HW Clients. add some type hints
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
7 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
d92a4e8365
keepkey: rm homescreen stuff (remnants from trezor?)
7 years ago
keepkeyjon
ef7af73bd3
keepkey: support v6.0.0+ firmwares (webusb)
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
026448837f
no more "import *"
...
fixes #5101
fixes #5105
7 years ago
SomberNight
16bac5fd73
rm qt icons file
...
so we don't need pyrcc5, which is not deterministic,
and so we don't need the submodule for the icons
based on electrumsv/electrumsv@bf8802c2eaf0bf75565b5423a95bcb85ec7eb781
7 years ago
SomberNight
0f0cee422e
trezor and clones: sign tx version too
7 years ago
SomberNight
c7f3adb67e
trezor: fix minor string formatting re translations
...
closes #4996
7 years ago
SomberNight
bd1f7b539e
qt: don't import PyQt5.Qt
...
related #4960
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
8aebb8249a
keepkey: full segwit support
...
ported from trezor plugin
needs new fw to work (5.8??)
fixes #3462
7 years ago
SomberNight
70c32590a9
hw plugins: fix only_hook_if_libraries_available
...
follow-up f9a5f2e183
7 years ago
SomberNight
f9a5f2e183
fix #4698
7 years ago
SomberNight
5f3408dd70
transaction.py: introduce TxOutputHwInfo namedtuple
8 years ago
SomberNight
b4b1de088a
move TrezorClient.expand_path to bitcoin.py
...
and allow its input to end with a '/' slash
8 years ago
SomberNight
2eb72d496f
transaction: introduce TxOutput namedtuple
8 years ago
SomberNight
c9c8b7656d
follow-up prev. sanity check OP_RETURN outputs
...
based on 86c63a3a08
8 years ago
SomberNight
e1b2195cf7
fix #4591 : pay to OP_RETURN on trezor
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