HomeSource World

accounts, signer: fix Ledger Live account derivation path (clef) (#21757)

Description

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>

Details

Provenance
Kristofer Peterson <svenski123@users.noreply.github.com>Authored on Nov 29 2020, 12:43 PM
GitHub <noreply@github.com>Committed on Nov 29 2020, 12:43 PM
Parents
rGETHfa572cd2971f: crypto: signing builds with signify/minisign (#21798)
Branches
Unknown
Tags
Unknown

Event Timeline

GitHub <noreply@github.com> committed rGETHb71334ac3de3: accounts, signer: fix Ledger Live account derivation path (clef) (#21757) (authored by Kristofer Peterson <svenski123@users.noreply.github.com>).Nov 29 2020, 12:43 PM