SomberNight
0c33994d70
plugins: hardware: HardwareHandlerBase.show_error() takes str, not exc
...
This is just a minor conceptual clean-up,
runtime behaviour is not being changed, as ultimately, much later in the exec flow,
the msg object being passed around is cast to str already.
(e.g. see str(text) at https://github.com/spesmilo/electrum/blob/4f7b6e897710338e8a4cfb8fa97c305218bdff88/electrum/gui/qt/util.py#L375-L379 )
2026-02-12 17:04:20 +00:00
Sander van Grieken
0f2a41e078
simple_config: factor out self.decimal_point and self.get_decimal_point() in favor of self.BTC_AMOUNTS_DECIMAL_POINT
2025-11-27 12:38:49 +01:00
SomberNight
b0464cc934
refactor 'init_wallet_wizard' hook a bit. add test_wizard trezor test
2025-07-21 02:40:17 +00:00
Marko Bencun
6567e01f61
bitbox02: update to 7.0.0
...
This adds support for BitBox02 Nova devices.
2025-07-17 12:07:24 +02:00
ThomasV
4714fdfba2
plugins: add icons to manifest.json
2025-06-17 10:45:03 +02:00
ThomasV
b86be552e7
hardware wallets: show address on device also from tx dialog
2025-05-06 18:22:07 +00:00
ThomasV
34a8ec64f8
move audio_modem icons to plugin dir, so that the plugin is self-contained.
...
This requires changing the API of OverlayControlMixin.addButton
2025-04-15 15:34:01 +02:00
ThomasV
c93b13f6d9
Make it possible to create zip plugins from internal plugins
...
specifically:
- add 'name' field to manifest.json
- make 'version' optional in contrib/make_plugin
- fix import in jade plugin
2025-04-14 11:54:04 +02:00
ThomasV
6e087950cf
move hw_wallet.py from plugins to electrum library
2025-04-10 10:19:15 +02:00
f321x
a9f8048251
use manifest.json instead of loading init file for plugin registration
2025-03-19 10:38:20 +01:00
ThomasV
eccc5900e0
move plugin icons to plugins
2024-10-17 13:32:30 +02:00
SomberNight
48661b5913
follow-up electrum_ecc: fix some import names
...
ref https://github.com/spesmilo/electrum/pull/9234
2024-10-10 19:24:27 +00:00
SomberNight
cfe8502f96
qt desktop gui: upgrade qt5->qt6
...
closes https://github.com/spesmilo/electrum/issues/8007
2024-09-18 15:48:38 +00:00
SomberNight
2f1095510c
bitcoin.py/transaction.py: API changes: rm most hex usage
...
Instead of some functions operating with hex strings,
and others using bytes, this consolidates most things to use bytes.
This mainly focuses on bitcoin.py and transaction.py,
and then adapts the API usages in other files.
Notably,
- scripts,
- pubkeys,
- signatures
should be bytes in almost all places now.
2024-04-29 17:10:26 +00:00
SomberNight
bd9d0ccc33
ecc: refactor/clean-up sign/verify APIs
2024-04-11 15:25:45 +00:00
Nicolas Kuttler
519437f46f
Call pairing dialog when necessary, fixes #8970
2024-03-21 21:32:42 +01:00
Sander van Grieken
643fbecc15
wizard: fix co-signing hardware wallets data incorrectly referenced
2024-02-14 12:42:15 +01:00
SomberNight
fffbc178cd
qt wizard: hww dialogs: log some exceptions more aggressively
...
sort of related: https://github.com/spesmilo/electrum/issues/8892
2024-02-14 09:05:21 +00:00
Sander van Grieken
d8f579ccfc
Consistently use translated strings for UserFacingException raises
2024-01-16 16:25:33 +01:00
Sander van Grieken
dd64b5c628
wizard: add bitbox02 new wallet init and checks to new wizard
2023-09-20 14:34:31 +02:00
Sander van Grieken
087718f3a7
hww: mark device_model_name(self) as @abstractmethod and override in hww clients that did not define it.
2023-09-20 14:34:31 +02:00
Sander van Grieken
0aebc1a31e
qt+plugins: cleanup. remove all old wizard code
2023-09-20 14:34:31 +02:00
Sander van Grieken
d70831392d
wizard: add keepkey to new wizard
2023-09-20 14:34:31 +02:00
Sander van Grieken
2739c2fd7b
wizard: bitbox_ view prefixes to bitbox02_
2023-09-20 14:34:31 +02:00
Sander van Grieken
66e9f502b0
qt: generalize wizard HWW xpub
2023-09-20 14:34:31 +02:00
Sander van Grieken
7dd43fa017
qt: add bitbox02 to new wizard
2023-09-20 14:34:31 +02:00
Marko Bencun
dfed0ef54a
bitbox02: display amounts in sats if Electrum's base unit is sat
...
The BitBox02 has the ability to display all amounts in sats instead of
BTC. This was introduced in v9.13.0. If Electrum is configured to show
sats, we propagate this config to the BitBox02.
This is backwards compatible: users with older firmware will see the
values in BTC regardless of the config.
2023-05-30 23:57:03 +02:00
Marko Bencun
7164f9fd6e
bitbox02: update to 6.2.0
...
6.2.0 was released to put a minimum requirement on hidapi 0.14.0,
which includes the fix for this issue:
https://github.com/libusb/hidapi/issues/531
That bug caused hidapi on macOS 13.3 to report 0 as the interface
number for all hid devices, which led to the bitbox02 multi edition being listed
twice instead of once - once for the main HW wallet interface and once erroneously
For the U2F interface (which should not be listed).
2023-05-30 23:55:52 +02:00
SomberNight
312f2641e7
don't use bare except
...
use "except Exception", or if really needed explicitly "except BaseException"
2023-04-24 12:58:01 +00:00
SomberNight
be159b5b95
bugfix: assert walrus (":=") combo side-eff. breaks w/ asserts disabled
...
```
$ python3 -O
Python 3.10.6 (main, Mar 10 2023, 10:55:28) [GCC 11.3.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> assert (x := 2)
>>> x
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
NameError: name 'x' is not defined
```
pity. it looked to be a neat and concise pattern.
2023-04-20 15:17:36 +00:00
SomberNight
7746cc8e60
bip32: (trivial) rename method strpath_to_intpath, for symmetry
...
Required a much higher mental load to parse the name "convert_bip32_path_to_list_of_uint32"
than to parse "convert_bip32_strpath_to_intpath".
And we already have the ~inverse: "convert_bip32_intpath_to_strpath".
2023-03-10 14:23:17 +00:00
SomberNight
0647a2cf9f
transaction.py: rm PartialTxInput.{num_sig, script_type}
2023-03-03 16:40:12 +00:00
SomberNight
373db76ac9
util: kill bh2u
...
no longer useful, and the name is so confusing...
2023-02-17 11:43:11 +00:00
SomberNight
1ce37c8bb1
transaction: rm hardcoded sighash magic numbers
2023-02-17 11:40:12 +00:00
SomberNight
8878059b2f
hw bitbox02: show error if trying to sign_message on testnet
...
User was getting confusing traceback.
Original discussion shows the device only supports messages for mainnet.
see https://github.com/spesmilo/electrum/pull/6649#issuecomment-708634831
2022-12-19 07:49:40 +00:00
SomberNight
e75110ec04
hw_wallet: de-dupe "message_dialog" code, make text selectable
2022-11-09 21:10:52 +00:00
SomberNight
b5d3f1458a
hww: impl get_client in Hardware_KeyStore instead of subclasses
2022-06-03 17:14:44 +02:00
Jeremy Rand
1aa444e0f8
Fix "== None" linter fails
...
Credit to Zoltan Konder for pointing me to this issue.
2022-05-24 02:39:11 +00:00
SomberNight
6c50d3b0a3
hw plugins: (cleanup) rm no-op clear_client argument from keystore.give_error
...
The keystore does not have a "client" field.
One is supposed to use the "get_client" method instead (the generic API is `plugin.get_client(keystore)`)
Remnants of old code.
2022-05-11 19:30:14 +02:00
SomberNight
30623c3529
hw plugins: (cleanup) Plugin objects should not have a Handler field
...
Handlers are per-client (connected device), plugins are ~singletons.
These were mostly remnants of old code.
2022-05-11 19:13:00 +02:00
SomberNight
9599254d43
hw: rm dead code from Hardware_KeyStore subclasses
...
- force_watching_only is long since unused
- comment was just duplicated from the base class
2022-05-09 20:09:10 +02:00
ghost43
8acda5f48d
Merge pull request #7693 from benma/bb02
...
bitbox02: bump dependency to v6.0.0, support sending to taproot
2022-03-02 13:29:24 +00:00
Marko Bencun
01b4b35f9f
bitbox02: bump dependency to v6.0.0, support sending to taproot
2022-03-02 14:14:24 +01:00
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
2022-02-22 19:20:03 +01:00
Marko Bencun
a16fdd54a8
bitbox02: bump dependency to 5.2.0
2021-03-18 09:45:15 +01:00
SomberNight
2eb02931ae
hw plugins: log exception at import time (but only if interesting)
...
related: https://github.com/spesmilo/electrum/issues/6928
2021-01-11 00:05:23 +01:00
Marko Bencun
b78b077606
bitbox02: more robust account keypath
...
In multisig, we plan to allow other kinds of keypaths that are not
exactly 4 elements long. This change allows parsing the account
keypath for any kind of keypath, assuming the last two element are /change/address.
2020-11-23 14:32:04 +01:00
Marko Bencun
a8f8175674
plugins/bitbox02: add support for signing a message
2020-10-14 20:33:54 +02:00
Marko Bencun
8fa019f65b
plugins/bitbox02: add support for p2wsh-p2sh multisig
2020-10-14 20:33:54 +02:00
Marko Bencun
2c0ae4abdd
contrib/requirements/requirements-hw.txt: bump bitbox02 dep to 5.0.0
...
Adds the api functions to sign a message and use p2wsh-p2sh legacy
segwit multisig.
2020-10-14 20:33:54 +02:00