pub fn execute(tokens: &[Token]) -> Result<bool, ScriptError>Expand description
Executes a sequence of tokens on a fresh stack.
Returns Ok(true) if the script succeeds (top stack element is truthy).
Returns Ok(false) if the stack is empty or the top element is falsy.
Returns Err(ScriptError) if any operation fails during execution.
OP_CHECKSIG uses stub mode (always succeeds). For real signature
verification, use execute_with_opts with a sighash and the
secp256k1 feature enabled.