https://github.com/qubistlabs/coinaddress
Minimal dependency coin address from xpub generator for python
https://github.com/qubistlabs/coinaddress
bitcoin bitcoin-cash blockchain cli coins ethereum litecoin python ripple
Last synced: about 2 months ago
JSON representation
Minimal dependency coin address from xpub generator for python
- Host: GitHub
- URL: https://github.com/qubistlabs/coinaddress
- Owner: qubistlabs
- License: mit
- Created: 2019-12-23T10:26:32.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2022-12-26T21:00:26.000Z (almost 3 years ago)
- Last Synced: 2025-08-04T15:33:50.031Z (2 months ago)
- Topics: bitcoin, bitcoin-cash, blockchain, cli, coins, ethereum, litecoin, python, ripple
- Language: Python
- Homepage:
- Size: 26.4 KB
- Stars: 14
- Watchers: 4
- Forks: 13
- Open Issues: 3
-
Metadata Files:
- Readme: README.rst
- Changelog: HISTORY.rst
- Contributing: CONTRIBUTING.rst
- License: LICENSE
Awesome Lists containing this project
README
===========
coinaddress
===========.. image:: https://img.shields.io/pypi/v/coinaddress.svg
:target: https://pypi.python.org/pypi/coinaddress.. image:: https://img.shields.io/travis/jibrelnetwork/coinaddress.svg
:target: https://travis-ci.org/jibrelnetwork/coinaddress.. image:: https://readthedocs.org/projects/coinaddress/badge/?version=latest
:target: https://coinaddress.readthedocs.io/en/latest/?badge=latest
:alt: Documentation Status.. image:: https://pyup.io/repos/github/jibrelnetwork/coinaddress/shield.svg
:target: https://pyup.io/repos/github/jibrelnetwork/coinaddress/
:alt: UpdatesCrypto address generator from xpub
* Free software: MIT license
Features
--------* generate addresses for multiple blockchains from extended public key (xpub)
* minimum dependency (it means security)
* CLI interfaceGetting started
---------------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.
Using from code
---------------You can use public python interface to convert addresses::
from coinaddress import address_from_xpub
address_from_xpub(
network='bitcoin',
xpub='',
path='0/0'
)Credits
-------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-pythonThis package was created with Cookiecutter_ and the `audreyr/cookiecutter-pypackage`_ project template.
.. _Cookiecutter: https://github.com/audreyr/cookiecutter
.. _`audreyr/cookiecutter-pypackage`: https://github.com/audreyr/cookiecutter-pypackage