Module utxo

Source
Expand description

Unspent transparent output data structures and functions.

Structs§

OrderedUtxo
A Utxo, and the index of its transaction within its block.
Utxo
An unspent transparent::Output, with accompanying metadata.

Enums§

CoinbaseSpendRestriction
A restriction that must be checked before spending a transparent output of a coinbase transaction.

Functions§

new_ordered_outputs
Compute an index of newly created OrderedUtxos, given a block and a list of precomputed transaction hashes.
new_ordered_outputs_with_height
Compute an index of newly created OrderedUtxos, given a block and a list of precomputed transaction hashes.
new_outputs
Compute an index of newly created Utxos, given a block and a list of precomputed transaction hashes.
new_outputs_with_height
Compute an index of newly created Utxos, given a block and a list of precomputed transaction hashes.
new_transaction_ordered_outputs
Compute an index of newly created OrderedUtxos, given a transaction, its precomputed transaction hash, the transaction’s index in its block, and the block’s height.
outputs_from_utxos
Compute an index of transparent::Outputs, given an index of Utxos.
utxos_from_ordered_utxos
Compute an index of Utxos, given an index of OrderedUtxos.