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.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | bff7ee02c7083e7c55797e9e55af9bd7a67a1a40eedac854898b59be38d1f38b |
|
MD5 | 47635da1d1eddb70380316cfaa5bac53 |
|
BLAKE2b-256 | 14bf0c5e4debb1afbf727b53865bf252abd8eaa07eba1168fb25778d18549974 |
Hashes for bitcoin_coin_selection-1.4.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c5e6da32f5abbf54fef8f265d76eae612933ac294a19b6d054a799ec87014021 |
|
MD5 | 499b0958c0bd93dd38c7fbfae21e6f55 |
|
BLAKE2b-256 | b2a329afdad48c8e7ffda90bc97f444b3eaa4bffa6fbf104fffffd3233ae0d0d |