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§
- Engine
Flags - Execution
Stacks - Captures the engine stacks after execution
- Execution
Stacks View - A read-only view of the execution stacks
- SigCache
Key - TxScript
Engine
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_countbut 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