<p>I struggle to make a python script that can make xpriv and xpub (extended public and private key) from the Master Node (BIP32 Root Key). I've derived the Master Node from the BIP39 seed with passphrase. If anyone could help, it would be much appreciated.</p>

CC BY-SA 4.0
2023-07-17T09:49:32.317Z
Which tutorial are you following? What have you tried so far? What error messages were produced?
RedGrittyBrick
CC BY-SA 4.0
2023-07-17T22:49:16.267Z
I've now gotten xprivs and xpubs by using bitcoinlib. I want to do it without using a library like bitcoinlib. I want to in the end produce addresses and be able to sign transactions. No tutorial is used as I have not found one.
Peder Rustad
CC BY-SA 4.0
2023-07-17T22:59:19.160Z
Do you intend to implement the key derivation described in the https://github.com/bitcoin/bips/blob/master/bip-0032.mediawiki description?
RedGrittyBrick
CC BY-SA 4.0
2023-07-17T23:00:50.273Z
Yes sir. Hardened addresses.
Peder Rustad
CC BY-SA 4.0
2023-07-17T23:03:17.173Z
I wish you good luck. I'm not sure what your actual specific problem or question here is but presumably you'll post code when you hit a problem that you'd like help with.
RedGrittyBrick
<bip32-hd-wallets><python><mnemonic-seed><xpub>
Master Node(BIP32 Root Key) to xpriv and xpub
Peder Rustad
# Master Node(BIP32 Root Key) to xpriv and xpub

(Asked by: username_0 on 2023-07-16)

I struggle to make a python script that can make xpriv and xpub (extended public and private key) from the Master Node (BIP32 Root Key). I've derived the Master Node from the BIP39 seed with passphrase. If anyone could help, it would be much appreciated.

**Tags:** bip32-hd-wallets, python, mnemonic-seed, xpub

> **Comments:**
> **username_1**: Which tutorial are you following? What have you tried so far? What error messages were produced?  
> **username_0**: I've now gotten xprivs and xpubs by using bitcoinlib. I want to do it without using a library like bitcoinlib. I want to in the end produce addresses and be able to sign transactions. No tutorial is used as I have not found one.  
> **username_1**: Do you intend to implement the key derivation described in the https://github.com/bitcoin/bips/blob/master/bip-0032.mediawiki description?  
> **username_0**: Yes sir. Hardened addresses.  
> **username_1**: I wish you good luck. I'm not sure what your actual specific problem or question here is but presumably you'll post code when you hit a problem that you'd like help with.  

---

## 0 answers

