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

pub struct TxIn {
    pub prev_hash: Sha256dHash,
    pub prev_index: u32,
    pub script_sig: Script,
    pub sequence: u32,
    pub witness: Vec<Vec<u8>>,
}

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.

Witness data: an array of byte-arrays. Note that this field is not (de)serialized with the rest of the TxIn in ConsensusEncodable/ConsennsusDecodable, as it is (de)serialized at the end of the full Transaction. It is (de)serialized with the rest of the TxIn in other (de)serializationn routines.

Trait Implementations

impl Clone for TxIn
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl PartialEq for TxIn
[src]

[src]

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

[src]

This method tests for !=.

impl Eq for TxIn
[src]

impl Debug for TxIn
[src]

[src]

Formats the value using the given formatter. Read more

impl Hash for TxIn
[src]

[src]

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

1.3.0
[src]

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

impl Deserialize for TxIn
[src]

[src]

Deserialize this value given this Deserializer.

impl Serialize for TxIn
[src]

[src]

Serializes this value into this serializer.

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

[src]

Encode an object with a well-defined format

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

[src]

Decode an object with a well-defined format

Auto Trait Implementations

impl Send for TxIn

impl Sync for TxIn