[][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 Input struct which represents a Bitcoin transaction input. It enjoys Encodable and Decodable.

outpoint

This module contains the Outpoint struct which represents a Bitcoin transaction outpoint. It enjoys Encodable and Decodable.

output

This module contains the Output struct which represents a Bitcoin transaction output. It enjoys Encodable and Decodable.

script

This module contains the Script struct which represents a Bitcoin transaction script. It enjoys Encodable, and provides some utility methods.

Structs

Input

Represents an input.

Output

Represents an output.

Script

Represents a script.

Transaction

Represents a transaction.

Enums

DecodeError

Error associated with Transaction deserialization.

InputDecodeError

Error associated with Input deserialization.

OutputDecodeError

Error associated with Output deserialization.

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.