Crypto address generator from xpub
- Free software: MIT license
- generate addresses for multiple blockchains from extended public key (xpub)
- minimum dependency (it means security)
- CLI interface
Install package using pip (prefer virtualenv):
pip install coinaddress
And you can start use provided CLI. Read help first:
coinaddress --help
To generate 1000 addresses for bitcoin xpub from file (xpub should be a single line in this file):
cat xpub.txt | coinaddress bitcoin 0 -n 1000
To generate another bunch of addresses:
cat xpub.txt | coinaddress bitcoin 1000 -n 1000
xpub can be passed with --xpub option but you should avoid this and prefer read from file for security reasons.
You can use public python interface to convert addresses:
from coinaddress import address_from_xpub address_from_xpub( network='bitcoin', xpub='<XPUB>', path='0/0' )
This package uses code (as is or as reference) from:
- https://github.com/ranaroussi/pywallet
- https://github.com/oskyk/cashaddress
- https://github.com/ethereum/eth-utils
- https://github.com/miracle2k/ripple-python
This package was created with Cookiecutter and the audreyr/cookiecutter-pypackage project template.