Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsPushOnly ¶
func IsPushOnly(pops []ParsedOpcode) bool
IsPushOnly returns true if the script only pushes data, false otherwise.
Types ¶
type ParsedOpcode ¶
ParsedOpcode represents an opcode that has been parsed and includes any potential data associated with it.
func ParseScript ¶
func ParseScript(script []byte) ([]ParsedOpcode, er.R)
parseScript preparses the script in bytes into a list of parsedOpcodes while applying a number of sanity checks.
func ParseScriptTemplate ¶
ParseScriptTemplate is the same as ParseScript but allows the passing of the template list for testing purposes. When there are parse errors, it returns the list of parsed opcodes up to the point of failure along with the error.
Click to show internal directories.
Click to hide internal directories.