Skip to main content

Module input_selection

Module input_selection 

Source
Expand description

Types related to the process of selecting inputs to be spent given a transaction request.

Re-exports§

pub use crate::data_api::locking::LockFilter;
pub use crate::data_api::locking::LockedInputPolicy;

Structs§

GreedyInputSelector
An InputSelector implementation that uses a greedy strategy to select between available notes.
NonEmptyBTreeSet
A BTreeSet that is guaranteed to contain at least one element.
SpendPolicy
The sources of funds an InputSelector is permitted to draw upon when satisfying a transaction request.
TransparentSpendPolicytransparent-inputs
Specifies how transparent UTXOs may be spent in a transfer, when a SpendPolicy permits transparent spending.

Enums§

CoinbasePolicy
The caller’s choice of which coinbase transparent outputs a transparent spend may draw upon.
GreedyInputSelectorError
Errors that can occur as a consequence of greedy input selection.
InputSelectorError
The type of errors that may be produced in input selection.
NoteSelection
How an InputSelector chooses among eligible notes when funding a payment.
TransparentSourcetransparent-inputs
The transparent receivers a TransparentSpendPolicy may draw UTXOs from.

Traits§

InputSelector
A strategy for selecting transaction inputs and proposing transaction outputs.
ShieldingSelectortransparent-inputs
A strategy for selecting transaction inputs and proposing transaction outputs for shielding-only transactions (transactions which spend transparent UTXOs and send all transaction outputs to the wallet’s shielded internal address(es)).