Module transaction
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.
Structs§
- This type is consensus valid but an input including it would prevent the transaction from being relayed on today’s Bitcoin network.
- A reference to a transaction output.
- Bitcoin transaction input sequence number.
- Error returned for failure during parsing one of the sighash types.
- Bitcoin transaction.
- Bitcoin transaction input.
- Bitcoin transaction output.
Enums§
- Hashtype of an input’s signature, encoded in the last byte of the signature.
- Result of
Transaction::encode_signing_data_to
. - An error in parsing an OutPoint.
- An error in creating relative lock-times.
Type Aliases§
- SigHash
Type Deprecated Legacy Hashtype of an input’s signature