ScriptTemplate

data class ScriptTemplate(var groupInfo: GroupInfo?, val templateHash: ByteArray?, val wellKnownId: Long?, val argsHash: ByteArray?, val rest: List<ByteArray>)

A parsed script template locking script

Parameters

groupInfo

the token group (if any)

templateHash

the raw bytes of the template (if its not well known)

wellKnownId

the well known template identifier (if its a well known template)

argsHash

the raw args hash bytes

rest

the rest of the script, split into instructions. NOTE: if these are data pushes, each item is NOT the raw data. Each item is a push opcode then the data.

Constructors

Link copied to clipboard
constructor(groupInfo: GroupInfo?, templateHash: ByteArray?, wellKnownId: Long?, argsHash: ByteArray?, rest: List<ByteArray>)

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
Link copied to clipboard

Returns the template's hash regardless of whether its encoded as a well-known id or not

Link copied to clipboard
open override fun hashCode(): Int
Link copied to clipboard
Link copied to clipboard