pub struct SpendParams {
pub source_txid: [u8; 32],
pub source_output_index: u32,
pub source_satoshis: u64,
pub locking_script: LockingScript,
pub transaction_version: i32,
pub other_inputs: Vec<TxInput>,
pub outputs: Vec<TxOutput>,
pub input_index: usize,
pub unlocking_script: UnlockingScript,
pub input_sequence: u32,
pub lock_time: u32,
pub memory_limit: Option<usize>,
}Expand description
Parameters for constructing a Spend validator.
Fields§
§source_txid: [u8; 32]The transaction ID of the source UTXO (32 bytes, internal byte order).
source_output_index: u32The index of the output in the source transaction.
source_satoshis: u64The satoshi value of the source UTXO.
locking_script: LockingScriptThe locking script of the source UTXO.
transaction_version: i32The version of the spending transaction.
other_inputs: Vec<TxInput>Other inputs in the spending transaction (excluding this one).
outputs: Vec<TxOutput>Outputs of the spending transaction.
input_index: usizeThe index of this input in the spending transaction.
unlocking_script: UnlockingScriptThe unlocking script for this spend.
input_sequence: u32The sequence number of this input.
lock_time: u32The lock time of the spending transaction.
memory_limit: Option<usize>Optional memory limit in bytes (default: 32MB).
Auto Trait Implementations§
impl !Freeze for SpendParams
impl !RefUnwindSafe for SpendParams
impl Send for SpendParams
impl !Sync for SpendParams
impl Unpin for SpendParams
impl UnsafeUnpin for SpendParams
impl UnwindSafe for SpendParams
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