Struct kaspa_txscript::TxScriptEngine
source · pub struct TxScriptEngine<'a, T: VerifiableTransaction> { /* private fields */ }
Implementations§
source§impl<'a, T: VerifiableTransaction> TxScriptEngine<'a, T>
impl<'a, T: VerifiableTransaction> TxScriptEngine<'a, T>
pub fn new( reused_values: &'a mut SigHashReusedValues, sig_cache: &'a Cache<SigCacheKey, bool> ) -> Self
pub fn from_transaction_input( tx: &'a T, input: &'a TransactionInput, input_idx: usize, utxo_entry: &'a UtxoEntry, reused_values: &'a mut SigHashReusedValues, sig_cache: &'a Cache<SigCacheKey, bool> ) -> Result<Self, TxScriptError>
pub fn from_script( script: &'a [u8], reused_values: &'a mut SigHashReusedValues, sig_cache: &'a Cache<SigCacheKey, bool> ) -> Self
pub fn is_executing(&self) -> bool
pub fn execute(&mut self) -> Result<(), TxScriptError>
Auto Trait Implementations§
impl<'a, T> !RefUnwindSafe for TxScriptEngine<'a, T>
impl<'a, T> Send for TxScriptEngine<'a, T>where T: Sync,
impl<'a, T> Sync for TxScriptEngine<'a, T>where T: Sync,
impl<'a, T> Unpin for TxScriptEngine<'a, T>
impl<'a, T> !UnwindSafe for TxScriptEngine<'a, T>
Blanket Implementations§
§impl<T> CastFrom for Twhere
T: Any + 'static,
impl<T> CastFrom for Twhere T: Any + 'static,
§fn ref_any(&self) -> &(dyn Any + 'static)
fn ref_any(&self) -> &(dyn Any + 'static)
Returns a immutable reference to
Any
, which is backed by the type implementing this trait.§fn mut_any(&mut self) -> &mut (dyn Any + 'static)
fn mut_any(&mut self) -> &mut (dyn Any + 'static)
Returns a mutable reference to
Any
, which is backed by the type implementing this trait.