Module agora.script.Script
Contains the script definition and syntactical opcode validation.
Functions
Name | Description |
toPushOpcode(data)
|
Creates a PUSH_BYTES_* or PUSH_DATA_* opcode based on the length of
the data. It does not verify data limits for the stack, as this check
belongs in the Stack and the Engine. Additionally it's useful to be able to
create exceeding data buffers with this function for testing purposes.
|
validateScriptSyntax(type, opcodes, StackMaxItemSize, script)
|
Validates the set of given opcodes syntactically, but not semantically.
Each opcode is checked if it's one of the known opcodes, and any push
opcodes have payloads checked for size constraints.
|
Structs
Name | Description |
Script
|
Contains a syntactically validated set of script opcodes
|