pub struct Input { /* private fields */ }Implementations§
Source§impl Input
impl Input
pub fn new( outpoint: OutPoint, sequence: Sequence, locktime: Option<LockTime>, witness_utxo: TxOut, tapscripts: Vec<ScriptBuf>, spend_info: (ScriptBuf, ControlBlock), is_onchain: bool, is_swept: bool, ) -> Self
Sourcepub fn new_with_extra_witness(
outpoint: OutPoint,
sequence: Sequence,
locktime: Option<LockTime>,
witness_utxo: TxOut,
tapscripts: Vec<ScriptBuf>,
spend_info: (ScriptBuf, ControlBlock),
is_onchain: bool,
is_swept: bool,
extra_witness: Vec<Vec<u8>>,
) -> Self
pub fn new_with_extra_witness( outpoint: OutPoint, sequence: Sequence, locktime: Option<LockTime>, witness_utxo: TxOut, tapscripts: Vec<ScriptBuf>, spend_info: (ScriptBuf, ControlBlock), is_onchain: bool, is_swept: bool, extra_witness: Vec<Vec<u8>>, ) -> Self
Create an input with extra witness elements (e.g., for ArkNotes).
pub fn script_pubkey(&self) -> &ScriptBuf
pub fn amount(&self) -> Amount
pub fn spend_info(&self) -> &(ScriptBuf, ControlBlock)
pub fn outpoint(&self) -> OutPoint
pub fn tapscripts(&self) -> &[ScriptBuf]
pub fn is_swept(&self) -> bool
pub fn extra_witness(&self) -> Option<&[Vec<u8>]>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Input
impl RefUnwindSafe for Input
impl Send for Input
impl Sync for Input
impl Unpin for Input
impl UnsafeUnpin for Input
impl UnwindSafe for Input
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