erigon-pulse/signer/core
Kristofer Peterson d4766a7bcf accounts, signer: 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>
# Conflicts:
#	signer/core/api.go
2021-03-08 12:44:10 +01:00
..
testdata core/signer, clef: improve ui-test flow, fix errors in uint handling (#19584) 2019-06-03 16:56:05 +02:00
api_test.go [GC] uint256 rather than big.Int in Transaction (#614) 2020-06-04 08:43:08 +01:00
api.go accounts, signer: fix Ledger Live account derivation path (clef) (#21757) 2021-03-08 12:44:10 +01:00
auditlog.go accounts, signer: implement gnosis safe support (#21593) 2020-10-26 17:16:00 +01:00
cliui.go accounts, signer: implement gnosis safe support (#21593) 2020-10-26 17:16:00 +01:00
gnosis_safe.go geth-1.9.23: post-rebase fixups 2020-10-26 17:16:00 +01:00
signed_data_internal_test.go fixups 2020-08-14 17:05:15 +02:00
signed_data_test.go accounts, signer: implement gnosis safe support (#21593) 2020-10-26 17:16:00 +01:00
signed_data.go all: remove redundant conversions and import names (#21903) 2021-03-08 12:43:02 +01:00
stdioui.go tests, signer: remove staticcheck warnings (#20364) 2019-12-03 13:55:17 +01:00
types.go [GC] uint256 rather than big.Int in Transaction (#614) 2020-06-04 08:43:08 +01:00
uiapi.go all: fix typos in comments (#21118) 2020-06-15 19:38:13 +03:00
validation_test.go Apply Turbo-Geth modifications to go-ethereum codebase 2019-11-01 21:52:03 +01:00
validation.go all: update author list and licenses 2019-07-22 12:17:27 +03:00