Port of Bitcoin core coin selection logic to Python
Project description
bitcoin_coin_selection
Port of Bitcoin core coin selection logic to Python, prioritizing fidelity to the original and convenience.
Classes / functions were named and organized per the original C++ code as far as was practicable. Most comments are copied.
Installation
pip install bitcoin_coin_selection
Usage
select_coins
is the main interface here. See the exmples folder for a step-by-step walkthrough.
Context
Bitcoin core coin selection logic:
https://github.com/bitcoin/bitcoin/blob/master/src/wallet/coinselection.cpp
https://github.com/bitcoin/bitcoin/blob/master/src/wallet/wallet.cpp
Erhardt's thesis on coin selection
https://murch.one/wp-content/uploads/2016/11/erhardt2016coinselection.pdf
Explanation of the "OutputGroup" type (privacy enhancement)
https://github.com/bitcoin/bitcoin/pull/12257
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for bitcoin_coin_selection-1.4.2.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 30e2cf6720b618f0324eb54c3307337706081a63458e8e52a97be055fdafbdc8 |
|
MD5 | 9cb158df325631a99196491aa70bc315 |
|
BLAKE2b-256 | 3e800f27371f8d17b886a5f8c5f4b9040ae39e6816276dc71decc6c124a7b862 |
Hashes for bitcoin_coin_selection-1.4.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5db193771ab361f26d2774f0e3c8c031f9496bbf988c5fffa868ef0e2a64466a |
|
MD5 | cced7cc2e7a941fee2d4088ea25a7b11 |
|
BLAKE2b-256 | 12fd0c88aa9478c7134411ce27eab3ee6b869b93a2fb3e3a47fbcc4ea141daed |