electrum icon indicating copy to clipboard operation
electrum copied to clipboard

derivation path in address details overloads "m" for root/master key

Open streamofstars opened this issue 2 years ago • 2 comments

Electrum 4.5.2 on MacOS (installed from binary provided on official website)

I created a new wallet with standard electrum seed: enable frozen derive coach ball recall theory soup crystal garage law enjoy

View, Addresses, and then Addresses tab, the first receiving address on the list is: bc1qaefvm8gm8f92yjyjmsmlm6e3fm388t3n62m22s

However, what bothers me is that when I right mouse click on it, chose Information it says that Derivation Path is: m/0/0 That is not true. The actual, full BIP32 derivation path that yields this address is: m/0h/0/0

I don't know, maybe author wanted to just display external and index numbers and intended to skip leading master and account number but something went wrong and master stayed.

streamofstars avatar Feb 11 '24 16:02 streamofstars

Well... m stands for different things in the two contexts. But yes, maybe it is a bit confusing. The wallet logic considers the root to be the xprv/xpub that is at the "account" level.

The actual, full BIP32 derivation path that yields this address is: m/0h/0/0

You can see the derivation prefix being m/0h in the Wallet Information dialog.

However, what bothers me is that when I right mouse click on it, chose Information it says that Derivation Path is: m/0/0

And then in the Address dialog, the derivation path m is calculated starting at that "prefix".

This is more apparent if you try to restore from e.g. a BIP39/44 seed, which has longer derivation paths.

SomberNight avatar Feb 12 '24 12:02 SomberNight

But yes, maybe it is a bit confusing.

Good to know it is not a bug but then, it is a confusing design. Please consider labeling it differently, adding a tooltip, etc. Thanks.

streamofstars avatar Feb 12 '24 19:02 streamofstars