pub struct TxInput {
pub txid: [u8; 32],
pub vout: u32,
pub script_sig: Vec<u8>,
pub sequence: u32,
pub witness: Vec<Vec<u8>>,
}Expand description
A transaction input.
Fields§
§txid: [u8; 32]Previous transaction ID (32 bytes, internal byte order)
vout: u32Output index in previous transaction
script_sig: Vec<u8>Unlocking script (scriptSig)
sequence: u32Sequence number
witness: Vec<Vec<u8>>Witness data (for SegWit)
Implementations§
Trait Implementations§
impl Eq for TxInput
impl StructuralPartialEq for TxInput
Auto Trait Implementations§
impl Freeze for TxInput
impl RefUnwindSafe for TxInput
impl Send for TxInput
impl Sync for TxInput
impl Unpin for TxInput
impl UnwindSafe for TxInput
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