Skip to main content

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


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

bitcoin_coin_selection-1.5.0-py3-none-any.whl (28.8 kB view details)

Uploaded Python 3

File details

Details for the file bitcoin_coin_selection-1.5.0-py3-none-any.whl.

File metadata

  • Download URL: bitcoin_coin_selection-1.5.0-py3-none-any.whl
  • Upload date:
  • Size: 28.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.6.1 requests/2.25.1 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.55.2 CPython/3.7.1

File hashes

Hashes for bitcoin_coin_selection-1.5.0-py3-none-any.whl
Algorithm Hash digest
SHA256 055a79e67576afc2761a0c6c80f6859582db09de016bd883504ad3cb7748f4c7
MD5 87872e75ac791f13699479644343c29c
BLAKE2b-256 b68df909290ac5844de6134bcac83bd8cacc4e427d815cc2cad78625b502cdd0

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page