1

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

1 Answer 1

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()

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.