Trên GitHub, ranaroussi/pywallet đã đạt 471 sao, ngôn ngữ Python. Dead-simple BIP32 (HD) wallet creation for BTC, BTG, BCH, LTC, DASH, USDT, QTUM and DOGE
Tóm tắt dựng từ metadata GitHub của chính dự án — chưa có bài review TopGit. Trang sẽ tự động cập nhật khi bài review đầy đủ được xuất bản.
VÌ SAO CHƯA CÓ REVIEW
TopGit viết bài đầy đủ cho repo có nhiều sao nhất và được yêu cầu nhiều nhất. Trang này là snapshot trong thời gian chờ — xem README gốc ở tab READ ME.
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.
ranaroussi/pywallet có 471 sao GitHub — tải lại trang để xem số mới nhất, hoặc xem trực tiếp github.com/ranaroussi/pywallet. TopGit phản chiếu số sao của GitHub nhưng không cam kết đến từng phút.
Commit gần nhất trên ranaroussi/pywallet là 8 tháng trước (theo timestamp GitHub). Repo có 183 fork — một chỉ báo về mức độ quan tâm của cộng đồng.
ranaroussi/pywallet là gì?
ranaroussi/pywallet (ranaroussi/pywallet) là dự án Python trên GitHub. Theo mô tả gốc: Dead-simple BIP32 (HD) wallet creation for BTC, BTG, BCH, LTC, DASH, USDT, QTUM and DOGE
ranaroussi/pywallet viết bằng ngôn ngữ gì?
ranaroussi/pywallet chủ yếu viết bằng Python. Trường "language" của GitHub dựa trên phần lớn byte ở nhánh mặc định.
Đọc đầy đủ README ở tab phía trên.
Muốn nghe thêm một ý kiến về pywallet?
Hỏi một AI đọc được trang này — một cú bấm là có ngay nhận định về pywallet.