Module bitcoin::blockdata::transaction
source · Expand description
Bitcoin transactions.
A transaction describes a transfer of money. It consumes previously-unspent transaction outputs and produces new ones, satisfying the condition to spend the old outputs (typically a digital signature with a specific key must be provided) and defining the condition to spend the new ones. The use of digital signatures ensures that coins cannot be spent by unauthorized parties.
This module provides the structures and functions needed to support transactions.
Re-exports
pub use crate::consensus::validation::TxVerifyError;
Structs
- Weight prediction of an individual input.
- A reference to a transaction output.
- Bitcoin transaction input sequence number.
- Bitcoin transaction.
- Bitcoin transaction input.
- Bitcoin transaction output.
- The transaction version.
Enums
- An error in parsing an OutPoint.
Functions
- Predicts the weight of a to-be-constructed transaction.
- Predicts the weight of a to-be-constructed transaction in const context.