The index of the last OP_CODESEPARATOR
Keeps track of where we are within a conditional tree.
Should be called for every OP_IF and OP_NOTIF with whether the first (true) or second (false) branch should be taken.
The alternative stack is used in some Script op codes.
The alternative stack is used in some Script op codes.
Keeps track of where we are within a conditional tree.
Sets a ScriptError on a given ScriptProgram.
Sets a ScriptError on a given ScriptProgram.
the error that the program hit while being executed in the script interpreter
the ExecutedScriptProgram with the given error set inside of the trait
ScriptFlag that are run with the script.
ScriptFlag that are run with the script. These flags indicate special conditions that a script needs to be run with. https://github.com/bitcoin/bitcoin/blob/master/src/script/interpreter.h#L31
Should be called on for every OP_ELSE
Non-conditional opcodes should be executed only if this is true
The index of the last OP_CODESEPARATOR
The original script that was given.
The original script that was given.
Should be called on for every OP_ENDIF
Removes the flags on the given ScriptProgram
The script operations that need to still be executed.
The script operations that need to still be executed.
ScriptInterpreter should look at the script head only if this is true.
ScriptInterpreter should look at the script head only if this is true.
Note that OP_IF, OP_NOTIF, OP_ELSE, and OP_ENDIF must be executed even if isInExecutionBranch is false as they must modify the states of trueCount and falseAndIgnoreCount.
The current state of the stack for execution of the ScriptProgram.
The current state of the stack for execution of the ScriptProgram.
Returns true if the stack top is false
Returns true if the stack top is false
Returns true if the stack top is true
Returns true if the stack top is true
This contains all relevant information for hashing and checking a ScriptSignature for a Transaction.
This contains all relevant information for hashing and checking a ScriptSignature for a Transaction.
Type for a ScriptProgram that is currently being evaluated by the ScriptInterpreter.
The index of the last OP_CODESEPARATOR
Keeps track of where we are within a conditional tree.