Struct clarity_repl::clarity::util::bitcoin::blockdata::transaction::TxIn
source · [−]pub struct TxIn {
pub previous_output: OutPoint,
pub script_sig: Script,
pub sequence: u32,
pub witness: Vec<Vec<u8>>,
}
Expand description
A transaction input, which defines old coins to be consumed
Fields
previous_output: OutPoint
The reference to the previous output that is being used an an input
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.
witness: Vec<Vec<u8>>
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
sourceimpl<D: SimpleDecoder> ConsensusDecodable<D> for TxIn
impl<D: SimpleDecoder> ConsensusDecodable<D> for TxIn
sourceimpl<S: SimpleEncoder> ConsensusEncodable<S> for TxIn
impl<S: SimpleEncoder> ConsensusEncodable<S> for TxIn
impl Eq for TxIn
impl StructuralEq for TxIn
impl StructuralPartialEq for TxIn
Auto Trait Implementations
impl RefUnwindSafe for TxIn
impl Send for TxIn
impl Sync for TxIn
impl Unpin for TxIn
impl UnwindSafe for TxIn
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more