Closed Ephraim-Akolo closed 1 year ago
Hi! Thank you for your PR.
I don't think that vendoring mnemonic package makes sense. What about making it an optional dependency instead?
okay, do you mean i should create a new git repo for it and add it as an extra_require in the setup?
Why a new git repo, if it's accessible as mnemonic
package on PyPI? We can just add it in extra_require and make code work conditionally based on presence of such library
The package is not accessible from PyPi because i built it as part of the tronpy package. Unless you want me to build it separately as a standalone package that can then be pushed to PyPi independently.
Only the packages currently present are used to implement the code. There are no additional imports.
tronpy/hdwallet/mnemonic.py and wordlist directory is from
https://github.com/trezor/python-mnemonic which can be installed from PyPI as pip install mnemonic
So you can change imports to using it instead of a vendored copy
Alright, I will do that commit the change.
Added the hierarchical-deterministic (HD) wallet feature as implemented in the python package
web3
. some source code template were gotten fromhttps://github.com/trezor/python-mnemonic
andhttps://github.com/ethereum/web3.py
and modified to integrate without additional dependencies.