I'm learning about the details of how HD wallets work. After reading the BIP32 and BIP44 documents thoroughly and supplementing it with Mastering Bitcoin there's still on aspect that I can't figure out.
Say I derive an extended private key with the BIP44 first account, first address path path: m/44'/0'/0'/0/0
and then I convert the extended private key into an extended public key.
Based on what I've read so far proper way would be to take the extended public key and work with an entirely non-hardened path like: M/0/1
, M/0/2
?
Is this the correct way to do it ? My problem is that a public key of M/44'/0'/0'/0/1
will not be the same as M/0/1
.
I'm just trying to make sure I'm using the derivation paths correctly. Thanks a lot!
m/0/1
refers to the key derived fromm/44'/0'/0'/0/0
and not the master key.m/0/1
refers exactly to the path it pertains to.m/44'/0'/0'/0/0
is a bip44 path. Not sure which wallet usesm/0/1
, if any. In any case, publicly deriving straight from the master key is a huge footgun.44'
with some other non-standard number to achieve the same result.m/0/1
is not the way to go, imo.