A look at ranaroussi/pywallet: 471 stars on GitHub, written primarily in Python. Dead-simple BIP32 (HD) wallet creation for BTC, BTG, BCH, LTC, DASH, USDT, QTUM and DOGE
Snapshot summary built from the project's own GitHub metadata — there's no written TopGit review yet. The page will update automatically when a full review is published.
WHY NO REVIEW YET
TopGit writes full reviews for the most-starred, most-requested repositories. This page is a snapshot until then — see the READ ME tab for the original README in full.
BIP32 (or HD for "hierarchical deterministic") wallets allow you to create
child wallets which can only generate public keys and don't expose a
private key to an insecure server.
This library simplify the process of creating new wallets for the
BTC, BTX, BTG, BCH, ETH, LTC, DASH and DOGE cryptocurrencies.
Most of the code here is forked from:
Steven Buss's Bitmerchant <https://github.com/sbuss/bitmerchant>_ (original)
BlockIo's multimerchant-python <https://github.com/BlockIo/multimerchant-python>_ (fork of Bitmerchant)
I simply added support for a few more cryptocurrencies (BCH, BTG, DASH), as well as created
methods to simplify the creation of HD wallets and child wallets.
Enjoy!
Installation
Install via PiP:
.. code:: bash
$ sudo pip install pywallet
Example code:
Create HD Wallet
The following code creates a new Bitcoin HD wallet:
.. code:: python
# create_btc_wallet.py
from pywallet import wallet
# generate 12 word mnemonic seed
seed = wallet.generate_mnemonic()
# create bitcoin wallet
w = wallet.create_wallet(network="BTC", seed=seed, children=1)
print(w)
You can create child-wallets (BIP32 wallets) from the HD wallet's
Extended Public Key to generate new public addresses without
revealing your private key.
Example:
.. code-block:: python
# create_child_wallet.py
from pywallet import wallet
WALLET_PUBKEY = 'YOUR WALLET XPUB'
# generate address for specific user (id = 10)
user_addr = wallet.create_address(network="BTC", xpub=WALLET_PUBKEY, child=10)
# or generate a random address, based on timestamp
rand_addr = wallet.create_address(network="BTC", xpub=WALLET_PUBKEY)
print("User Address\n", user_addr)
print("Random Address\n", rand_addr)
Output looks like this:
.. code:: bash
$ python create_child_wallet.py
User Address
{
"address": "13myudz3WhpBezoZue6cwRUoHrzWs4vCrb",
"path": "m/0/395371597"
}
Random Address
{
"address": "1KpS2wC5J8bDsGShXDHD7qdGvnic1h27Db",
"path": "m/0/394997119"
}
IMPORTANT
I highly recommend that you familiarize yourself with the Blockchain technology and
be aware of security issues.
Reading Mastering Bitcoin <https://github.com/bitcoinbook/bitcoinbook>_ and going over
Steven Buss's security notes on the Bitmerchant repository <https://github.com/sbuss/bitmerchant>_
is a good start.
The most recent commit recorded on ranaroussi/pywallet was 8 months ago, based on the GitHub push timestamp. The repository has 183 forks — one of the better signals of community interest.
How many stars does ranaroussi/pywallet have?
ranaroussi/pywallet has 471 GitHub stars — refresh the page for the live number, or check github.com/ranaroussi/pywallet. TopGit mirrors GitHub's count but does not claim minute-by-minute accuracy.
What is ranaroussi/pywallet?
ranaroussi/pywallet (ranaroussi/pywallet) is a Python project on GitHub. From the project's own README: Dead-simple BIP32 (HD) wallet creation for BTC, BTG, BCH, LTC, DASH, USDT, QTUM and DOGE
What language is ranaroussi/pywallet written in?
ranaroussi/pywallet is written primarily in Python. GitHub's language field is based on the largest share of bytes in the default branch.
What topics is ranaroussi/pywallet associated with?