Crate bitcoin_coin_selection

Crate bitcoin_coin_selection 

Source
Expand description

Rust Bitcoin coin selection library.

Efficient algorithms for choosing an optimal UTXO set.

Modules§

errors
Possible returned error types if no match is found.

Structs§

WeightedUtxo
Represents the spendable conditions of a UTXO.

Functions§

branch_and_bound
Deterministic depth first branch and bound search for a changeless solution.
coin_grinder
Deterministic Branch and Bound search that minimizes the input weight.
select_coinsrand
Attempt a match with branch_and_bound falling back to single_random_draw.
single_random_drawrand
Randomized single round selection.