plugeth/signer/core
Kristofer Peterson b71334ac3d
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>
2020-11-29 13:43:15 +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 tests, signer: remove staticcheck warnings (#20364) 2019-11-23 12:51:37 +01:00
api.go accounts, signer: fix Ledger Live account derivation path (clef) (#21757) 2020-11-29 13:43:15 +01:00
auditlog.go accounts, signer: implement gnosis safe support (#21593) 2020-09-29 17:40:08 +02:00
cliui.go accounts, signer: implement gnosis safe support (#21593) 2020-09-29 17:40:08 +02:00
gnosis_safe.go accounts, signer: implement gnosis safe support (#21593) 2020-09-29 17:40:08 +02:00
signed_data_internal_test.go signer: EIP 712, parse bytes and bytesX as hex strings + correct padding (#21307) 2020-08-03 21:53:12 +02:00
signed_data_test.go accounts, signer: implement gnosis safe support (#21593) 2020-09-29 17:40:08 +02:00
signed_data.go all: remove redundant conversions and import names (#21903) 2020-11-25 21:00:23 +01:00
stdioui.go tests, signer: remove staticcheck warnings (#20364) 2019-11-23 12:51:37 +01:00
types.go tests, signer: remove staticcheck warnings (#20364) 2019-11-23 12:51:37 +01:00
uiapi.go all: fix typos in comments (#21118) 2020-05-25 10:21:28 +02:00
validation_test.go all: update author list and licenses 2019-07-22 12:17:27 +03:00
validation.go all: update author list and licenses 2019-07-22 12:17:27 +03:00