TransWikia.com

How to get bitcoin bip32 public key from private key?

Bitcoin Asked by Avi El on October 24, 2021

I need to know how to get the corresponding public key of a private key in hd-wallets, I don’t need the derived ones but the public key who is related to the private I got. If there is an algorithm using python it will be very helpful but also the formula will be good as well.
thank you.

One Answer

I need to know how to get the corresponding public key of a private key in hd-wallets, I don't need the derived ones but the public key who is related to the private I got.

A private key derived using the BIP32 hierarchical derivation is similar to any other one and the corresponding public key is obtained by "multiplying" your private by G, as for any other private key.

You want to use a specific crypto library for this operation, and I believe coincurve to be a good maintained Python binding to libsecp.

You can also use python-bip32 to simplify your use of BIP32 derived keys (relies on coincurve under the hood).

Answered by darosior on October 24, 2021

Add your own answers!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP