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
prev_hash: Sha256dHash
The hash of the transaction whose output is being used an an input
prev_index: u32
The index of the output in the previous transaction, which may have several
script_sig: Script
The script which pushes values on the stack which will cause the referenced output's script to accept
sequence: u32
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 Hash for TxIn
[src]
fn hash<__H: Hasher>(&self, __arg_0: &mut __H)
Feeds this value into the state given, updating the hasher as necessary.
fn hash_slice<H>(data: &[Self], state: &mut H) where H: Hasher
1.3.0
Feeds a slice of this type into the state provided.
impl Debug for TxIn
[src]
impl Eq for TxIn
[src]
impl PartialEq for TxIn
[src]
fn eq(&self, __arg_0: &TxIn) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &TxIn) -> bool
This method tests for !=
.
impl Clone for TxIn
[src]
fn clone(&self) -> TxIn
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more
impl Deserialize for TxIn
fn deserialize<D>(deserializer: &mut D) -> Result<TxIn, D::Error> where D: Deserializer
Deserialize this value given this Deserializer
.
impl Serialize for TxIn
fn serialize<S>(&self, serializer: &mut S) -> Result<(), S::Error> where S: Serializer
Serializes this value into this serializer.
impl<S: SimpleEncoder> ConsensusEncodable<S> for TxIn
[src]
fn consensus_encode(&self, s: &mut S) -> Result<(), S::Error>
Encode an object with a well-defined format
impl<D: SimpleDecoder> ConsensusDecodable<D> for TxIn
[src]
fn consensus_decode(d: &mut D) -> Result<TxIn, D::Error>
Decode an object with a well-defined format