Struct elements::TxIn[][src]

pub struct TxIn {
    pub previous_output: OutPoint,
    pub script_sig: Script,
    pub sequence: u32,
    pub asset_issuance: AssetIssuance,
    pub witness: TxInWitness,
}

A transaction input, which defines old coins to be consumed

Fields

The reference to the previous output that is being used an an input

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.

Asset issuance data

Witness data - not deserialized/serialized as part of a TxIn object (rather as part of its containing transaction, if any) but is logically part of the txin.

Methods

impl TxIn
[src]

Whether the input is a coinbase

Whether the input is a pegin

Helper to determine whether an input has an asset issuance attached

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. Read more

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<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

Auto Trait Implementations

impl Send for TxIn

impl Sync for TxIn