1
0
Files
electrum/electrum
SomberNight 499f51535f bip32: fix hardened char "h" vs "'" compatibility for some hw wallets
in particular, ledger: fix sign_message for some wallets

```
156.02 | E | plugins.ledger.ledger |
Traceback (most recent call last):
  File "...\electrum\electrum\plugins\ledger\ledger.py", line 1265, in sign_message
    result = base64.b64decode(self.client.sign_message(message, address_path))
  File "...\Python310\site-packages\ledger_bitcoin\client.py", line 230, in sign_message
    sw, response = self._make_request(self.builder.sign_message(message_bytes, bip32_path), client_intepreter)
  File "...\Python310\site-packages\ledger_bitcoin\command_builder.py", line 176, in sign_message
    bip32_path: List[bytes] = bip32_path_from_string(bip32_path)
  File "...\Python310\site-packages\ledger_bitcoin\common.py", line 68, in bip32_path_from_string
    return [int(p).to_bytes(4, byteorder="big") if "'" not in p
  File "...\Python310\site-packages\ledger_bitcoin\common.py", line 68, in <listcomp>
    return [int(p).to_bytes(4, byteorder="big") if "'" not in p
ValueError: invalid literal for int() with base 10: '84h'
```

Regression from df2bd61de6, where the
default hardened char was changed from "'" to "h". Note that there was
no corresponding wallet db upgrade, so some files use one char and
others use the other.
2023-04-27 17:03:16 +00:00
..
2022-07-07 18:29:01 +02:00
2023-04-24 12:58:01 +00:00
2022-10-20 18:43:54 +00:00
2023-04-24 12:58:01 +00:00
2023-04-24 12:58:01 +00:00
2023-04-24 12:58:30 +00:00
2023-04-24 12:58:01 +00:00
2023-04-24 13:00:07 +00:00
2023-04-24 12:58:01 +00:00
2023-04-24 12:58:01 +00:00
2023-04-24 12:58:01 +00:00
2023-04-24 12:58:01 +00:00
2023-04-24 13:00:07 +00:00
2023-04-24 12:58:01 +00:00
2023-04-24 12:58:01 +00:00
2023-04-24 12:58:01 +00:00
2023-04-24 12:58:01 +00:00
2022-10-31 16:13:22 +00:00
2023-02-17 11:43:11 +00:00
2023-02-17 11:43:11 +00:00
2023-04-24 12:58:01 +00:00
2023-02-17 11:43:11 +00:00
2023-02-17 11:43:11 +00:00
2023-04-24 12:58:01 +00:00
2023-02-17 11:43:11 +00:00
2023-04-24 12:58:01 +00:00
2022-11-06 06:22:50 +00:00
2023-02-17 11:43:11 +00:00
2023-04-24 12:58:19 +00:00
2023-04-24 12:58:01 +00:00
2022-10-31 16:13:22 +00:00
2022-04-11 17:40:22 +02:00
2023-04-24 12:58:26 +00:00
2022-10-31 16:13:22 +00:00
2022-11-18 23:13:25 +01:00
2023-04-24 12:58:01 +00:00
2023-04-19 22:31:08 +00:00
2023-04-24 12:58:01 +00:00
2023-04-24 12:58:01 +00:00
2023-02-17 11:43:11 +00:00
2023-04-26 14:49:37 +00:00
2023-04-24 12:58:01 +00:00
2023-04-27 11:11:29 +00:00
2023-04-24 12:58:01 +00:00
2023-02-17 11:43:11 +00:00