go-ethereum/accounts
Daniel Liu ddea01dc9c accounts: fix Ledger Live account derivation path (clef) (#21757)
* signer/core/api: fix derivation of ledger live accounts

For ledger hardware wallets, change account iteration as follows:

- ledger legacy: m/44'/60'/0'/X; for 0<=X<5
- ledger live: m/44'/60'/0'/0/X; for 0<=X<5

- ledger legacy: m/44'/60'/0'/X; for 0<=X<10
- ledger live: m/44'/60'/X'/0/0; for 0<=X<10

Non-ledger derivation is unchanged and remains as:
- non-ledger: m/44'/60'/0'/0/X; for 0<=X<10

* signer/core/api: derive ten default paths for all hardware wallets, plus ten legacy and ten live paths for ledger wallets

* signer/core/api: as .../0'/0/0 already included by default paths, do not include it again with ledger live paths

* accounts, signer: implement path iterators for hd wallets

Co-authored-by: Martin Holst Swende <martin@swende.se>
2025-01-24 16:18:30 +08:00
..
abi accounts: remove redundant conversions and import names (#21903) 2025-01-24 16:18:30 +08:00
keystore accounts: remove redundant conversions and import names (#21903) 2025-01-24 16:18:30 +08:00
scwallet accouts, core: fix some comments (#21617) 2025-01-24 16:18:30 +08:00
usbwallet accounts/usbwallet: fix ledger version check (#21733) 2025-01-24 16:18:30 +08:00
accounts.go accouts, core: fix some comments (#21617) 2025-01-24 16:18:30 +08:00
accounts_test.go accounts: support for external signer API (#18079) 2025-01-24 16:18:29 +08:00
errors.go accounts: replace passPHRASE with passWORD in any user interactions (#19932) 2025-01-24 16:18:29 +08:00
hd.go accounts: fix Ledger Live account derivation path (clef) (#21757) 2025-01-24 16:18:30 +08:00
hd_test.go accounts: fix Ledger Live account derivation path (clef) (#21757) 2025-01-24 16:18:30 +08:00
manager.go accounts: add walletsNoLock to avoid double read lock (#20655) 2025-01-24 16:18:29 +08:00
sort.go accounts: smartcard wallet without the dependency on libpcsclite (#19273) 2025-01-24 16:18:29 +08:00
url.go accounts: add unit tests for URL (#17182) 2025-01-24 16:18:28 +08:00
url_test.go accounts: add unit tests for URL (#17182) 2025-01-24 16:18:28 +08:00