<pre><code>from hdwallet import BIP84HDWallet
from hdwallet.cryptocurrencies import BitcoinMainnet

wallet = BIP84HDWallet(cryptocurrency=BitcoinMainnet)

wallet.from_private_key(private_key=&quot;YOUR_PRIVATE_KEY&quot;)
address = wallet.address()
</code></pre>

CC BY-SA 4.0
2024-12-31T01:54:31.330Z
Can one do that from entropy? But BIP84 as it is here?
pbies
CC BY-SA 4.0
2024-03-20T14:03:20.210Z
2024-03-20T14:03:51.730Z
2024-03-20T14:03:51.730Z
Blad
<p>Does anyone have a python script deriving the bip84 addresses from the private key?</p>
<p>I do have the private root key so I don't need to go all the way from the private key.</p>
<p>I'd like to do this with the minimum amount of libraries.</p>
<p>Thank you so much in advance!</p>
<p>Best,
Peder</p>

<private-key><script><public-key><python><bip-84>
Deriving bip84 addresses with python
Peder Rustad
# Deriving bip84 addresses with python

(Asked by: username_0 on 2024-03-05)

Does anyone have a python script deriving the bip84 addresses from the private key?

I do have the private root key so I don't need to go all the way from the private key.

I'd like to do this with the minimum amount of libraries.

Thank you so much in advance!

Best,
Peder

**Tags:** private-key, script, public-key, python, bip-84


---

## 1 answers

### Answer by username_1 on 2024-03-20. Score: 0

from hdwallet import BIP84HDWallet
from hdwallet.cryptocurrencies import BitcoinMainnet

wallet = BIP84HDWallet(cryptocurrency=BitcoinMainnet)

wallet.from_private_key(private_key="YOUR_PRIVATE_KEY")
address = wallet.address()

> **Comments:**
> **username_2**: Can one do that from entropy? But BIP84 as it is here?  

---

