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 Distribution

bitcoin_coin_selection-1.4.2.tar.gz (9.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

bitcoin_coin_selection-1.4.2-py3-none-any.whl (27.6 kB view details)

Uploaded Python 3

File details

Details for the file bitcoin_coin_selection-1.4.2.tar.gz.

File metadata

  • Download URL: bitcoin_coin_selection-1.4.2.tar.gz
  • Upload date:
  • Size: 9.5 kB
  • Tags: Source
  • 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.4.2.tar.gz
Algorithm Hash digest
SHA256 30e2cf6720b618f0324eb54c3307337706081a63458e8e52a97be055fdafbdc8
MD5 9cb158df325631a99196491aa70bc315
BLAKE2b-256 3e800f27371f8d17b886a5f8c5f4b9040ae39e6816276dc71decc6c124a7b862

See more details on using hashes here.

File details

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

File metadata

  • Download URL: bitcoin_coin_selection-1.4.2-py3-none-any.whl
  • Upload date:
  • Size: 27.6 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.4.2-py3-none-any.whl
Algorithm Hash digest
SHA256 5db193771ab361f26d2774f0e3c8c031f9496bbf988c5fffa868ef0e2a64466a
MD5 cced7cc2e7a941fee2d4088ea25a7b11
BLAKE2b-256 12fd0c88aa9478c7134411ce27eab3ee6b869b93a2fb3e3a47fbcc4ea141daed

See more details on using hashes here.

Supported by

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