Open guptamukund22 opened 2 months ago
Yes, this is the idea. I will need some time to think of proper way of proceeding with this before reviewing this PR. Bear with me.
Sure. Till then I will read more about BIP 32.
I had a look at it and just realised that you are just wrapping around the python-mnemonic library. The existing code wraps another library. The goal was to implement them from scratch in an easy to understand way (clean code, comments), etc. for educational purposes.
Sure , I will try to implement it from scratch with comments.
I have tried to implement class HDW from scratch. I was thinking to proceed forward with from_mnemonic
functionality of hdwallet, but I wanted to confirm whether this is the implementation you have in mind.
Hi @karask
I have implemented HDW
class, which functions appropriately as an alternative for class HDWallet
. The class includes functionalites pertaining to BIP 39 and BIP 32. Some of these methods are:
from_mnemonic()
from_xprivate_key()
from_path, etc.
Class HDWallet
in hdwallet.py
is also modified and now instantiates HDW
object and constant BIP32KEY_HARDEN
has been added to constants.py accordingly.
I have also checked example file hdkeys.py to make sure the code runs appropriately. If there are any modifications you want me to make, please let me know.
Hi @karask
A gentle reminder.
In TODO , it is mentioned to create a simple version of HDW as wrapped in hdwallet.py. This code is just my implementation after reading BIP 39 Documentation . I wanted to clarify whether this is what is expected before I move further with BIP 32.