pub struct TxIn {
pub previous_output: OutPoint,
pub script_sig: String,
pub sequence: u32,
pub witness: Vec<String>,
}Expand description
A transaction input, which defines old coins to be consumed
Fields§
§previous_output: OutPointThe reference to the previous output that is being used an an input.
script_sig: StringThe script which pushes values on the stack which will cause the referenced output’s script to be accepted.
sequence: u32The 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<String>Witness data: an array of byte-arrays. Note that this field is not (de)serialized with the rest of the TxIn in Encodable/Decodable, 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)serialization routines.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for TxIn
impl<'de> Deserialize<'de> for TxIn
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Ord for TxIn
impl Ord for TxIn
Source§impl PartialOrd for TxIn
impl PartialOrd for TxIn
impl Eq for TxIn
impl StructuralPartialEq for TxIn
Auto Trait Implementations§
impl Freeze for TxIn
impl RefUnwindSafe for TxIn
impl Send for TxIn
impl Sync for TxIn
impl Unpin for TxIn
impl UnwindSafe for TxIn
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more