[−][src]Module cashweb_bitcoin::transaction
This module contains the primary structs related to Bitcoin transactions.
All of them enjoy Encodable
and Decodable
.
Modules
input | This module contains the |
outpoint | This module contains the |
output | This module contains the |
script | This module contains the |
Structs
Input | Represents an input. |
Output | Represents an output. |
Script | Represents a script. |
Transaction | Represents a transaction. |
Enums
DecodeError | Error associated with |
InputDecodeError | Error associated with |
OutputDecodeError | Error associated with |
SignatureHashType | Enumerates the different signature hash types. |
Functions
transaction_id | Calculate the transaction ID. This is the double SHA256 digest of the raw transaction in big-endian encoding. |
transaction_id_le | Calculate the transaction ID in little-endian format. This is the double SHA256 digest of the raw transaction. |