Skip to main content

Module parsed_opcode

Module parsed_opcode 

Source
Expand description

Parsed opcode representation and script parser. Parsed opcode representation and script parser.

Structs§

ParsedOpcode
A parsed opcode with its data payload.

Functions§

is_push_only
Check if a parsed script is push-only.
parse_script
Parse a Script into a ParsedScript.
remove_opcode
Remove all occurrences of a specific opcode.
remove_opcode_by_data
Remove opcodes that push the given data.
unparse
Unparse a ParsedScript back to a Script.

Type Aliases§

ParsedScript
A parsed script is a sequence of parsed opcodes.