Skip to main content

Crate kaspa_txscript

Crate kaspa_txscript 

Source

Re-exports§

pub use crate::seq_commit_accessor::SeqCommitAccessor;
pub use engine_context::EngineCtx;
pub use engine_context::EngineCtxSync;
pub use engine_context::EngineCtxUnsync;
pub use standard::*;

Modules§

caches
covenants
engine_context
error
hex
opcodes
prelude
result
runtime_resource_meter
script_builder
script_class
seq_commit_accessor
standard
zk_deps
Consensus-pinned ZK verifier dependencies used by txscript.
zk_precompiles

Structs§

EngineFlags
ExecutionStacks
Captures the engine stacks after execution
ExecutionStacksView
A read-only view of the execution stacks
SigCacheKey
TxScriptEngine

Constants§

LOCK_TIME_THRESHOLD
MAX_OPS_PER_SCRIPT
MAX_PUB_KEYS_PER_MUTLTISIG
MAX_SCRIPTS_SIZE
MAX_SCRIPT_ELEMENT_SIZE
MAX_SCRIPT_PUBLIC_KEY_VERSION
MAX_STACK_SIZE
MAX_TX_IN_SEQUENCE_NUM
NO_COST_OPCODE
SEQUENCE_LOCK_TIME_DISABLED
SEQUENCE_LOCK_TIME_MASK
ZERO_SIG

Functions§

deserialize_i64
estimate_script_units_upper_bound
get_sig_op_count
Determines the exact number of signature operations executed in a transaction input by simulating the script execution. Takes into account conditional branches and only counts signature operations that are actually executed.
get_sig_op_count_upper_bound
Calculates an upper bound of signature operations in a script without executing it. This is faster than get_sig_op_count but may overestimate the count in scripts with conditional logic.
get_zk_script_units_upper_bound
is_unspendable
Returns whether the passed public key script is unspendable, or guaranteed to fail at execution.
p2sh_sig_scanner
Counts sigops in a p2sh redeem script.
parse_script
script_to_str
serialize_i64

Type Aliases§

DynOpcodeImplementation