Struct bitcoin::blockdata::transaction::TxIn [] [src]

pub struct TxIn {
    pub prev_hash: Sha256dHash,
    pub prev_index: u32,
    pub script_sig: Script,
    pub sequence: u32,
}

A transaction input, which defines old coins to be consumed

Fields

The hash of the transaction whose output is being used an an input

The index of the output in the previous transaction, which may have several

The script which pushes values on the stack which will cause the referenced output's script to accept

The sequence number, which suggests to miners which of two conflicting transactions should be preferred, or 0xFFFFFFFF to ignore this feature. This is generally never used since the miner behaviour cannot be enforced.

Trait Implementations

impl Clone for TxIn
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl PartialEq for TxIn
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl Eq for TxIn
[src]

impl Debug for TxIn
[src]

Formats the value using the given formatter.

impl Hash for TxIn
[src]

Feeds this value into the given [Hasher]. Read more

Feeds a slice of this type into the given [Hasher]. Read more

impl Deserialize for TxIn

Deserialize this value given this Deserializer.

impl Serialize for TxIn

Serializes this value into this serializer.

impl<S: SimpleEncoder> ConsensusEncodable<S> for TxIn
[src]

Encode an object with a well-defined format

impl<D: SimpleDecoder> ConsensusDecodable<D> for TxIn
[src]

Decode an object with a well-defined format