-
Hi! Need help with getting BIP84 HD wallet from entropy. For now I don't see from_entropy function in new, 3.2.0 version with BIP84. Do I need to go back with HDWallet version, or it can be done in 3.2.0? Thank you |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 1 reply
-
Hello @pbies, In Version 3, the For further details: https://github.com/talonlab/python-hdwallet/blob/master/clients/bip84.py#L50 Alternatively, if you prefer to use See this example: https://github.com/talonlab/python-hdwallet/blob/master/examples/BIPs/from_entropy.py Thanks! |
Beta Was this translation helpful? Give feedback.
-
Which BIPs/BIPxxHDs are the default ones for Bitcoin? I see: 84, 39, 44, 32. I have code like:
and then printing addresses from hdwallet. |
Beta Was this translation helpful? Give feedback.
-
Bitcoin Core typically defaults to the following address types:
If you aim to convert to all 7 address types, you can use |
Beta Was this translation helpful? Give feedback.
Hello @pbies,
In Version 3, the
from_entropy
andfrom_mnemonic
root functions are not available in all HD classes. Instead, the root function starts withfrom_seed
. To use entropy or a mnemonic, you need to convert them into a seed first.For further details: https://github.com/talonlab/python-hdwallet/blob/master/clients/bip84.py#L50
Alternatively, if you prefer to use
from_entropy
andfrom_mnemonic
directly, consider using theHDWallet
class instead of the specific HD classes.See this example: https://github.com/talonlab/python-hdwallet/blob/master/examples/BIPs/from_entropy.py
Thanks!