Skip to main content

Port of Bitcoin core coin selection logic to Python

Project description


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.


pip install bitcoin_coin_selection


select_coins is the main interface here. See the exmples folder for a step-by-step walkthrough.


Bitcoin core coin selection logic:

Erhardt's thesis on coin selection

Explanation of the "OutputGroup" type (privacy enhancement)

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release. See tutorial on generating distribution archives.

Built Distribution

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page