Skip to main content

Crate bitcoin_coin_selection

Crate bitcoin_coin_selection 

Source
Expand description

Rust Bitcoin coin selection library.

Efficient algorithms for choosing an optimal UTXO set.

Traits§

WeightedUtxo
Behavior needed for coin-selection.

Functions§

branch_and_bound
Performs a deterministic depth first branch and bound search for a changeless solution.
select_coinsrand
Attempt a match with branch_and_bound falling back to single_random_draw.
single_random_drawrand
Randomize the input set and select coins until the target is reached.
single_random_draw_with_rngrand
Randomize the input set and select coins until the target is reached with RNG.