-
Notifications
You must be signed in to change notification settings - Fork 47
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Private and public key #1
Comments
Please help me find the keys so that the generated address can be used. I am not able to figure it out. |
This code is for generating addresses from an XPUB. When generating from an XPUB, you are only able to derive the public key and the address and not the corresponding private key.
If you're starting from the mnemonic, however, you can get the private key and public key:
Hope that helps! |
How can I get 64 characters private key or wif to sign a transaction? |
@csbadhe Hmmm, it looks like my example above is giving the hex representation of the HDPrivateKey object. It looks like if you keep everything the same as above, this should give the actual private key: |
It worked. Thanks a lot, @michailbrynard. |
Thanks for making such a good module for.
Can you tell me how to get private and public keys to the generated address?
The text was updated successfully, but these errors were encountered: