bip32 hd wallet – I need help deriving an extended private key from a Bitcoin root extended public key and an unenhanced extended private key.
I am currently working on an assignment that involves deriving an unenhanced extended private key for a specific search path in Bitcoin. The challenge provides the following information:
Bitcoin root extended public key (starts with xpub…) Bitcoin non-enhanced extended private key for the derived path. m/44/0/0/1/404
Search path (starting with xprv) from which the relevant (non-hardened) extended private key must be derived: m/44/0/0/0/402
The task is to derive an unenhanced extended private key for a given search path and the submission must be encoded according to the BIP 32 specification.
I am pycoin
and python-hdwallet
But I’m having a hard time understanding the process and getting the right results. Can someone provide guidance or a step-by-step approach on how to achieve this using these libraries or other related tools?
Also, if there is a specific function or method within these libraries that is suitable for this task, please provide an example so that I can better understand the implementation.
I would appreciate some help and clarification on this issue. thank you!