Runner

class Runner(val context: Script.Context, val scriptFlag: Int = ScriptFlags.MANDATORY_SCRIPT_VERIFY_FLAGS)

Constructors

Link copied to clipboard
fun Runner(context: Script.Context, scriptFlag: Int = ScriptFlags.MANDATORY_SCRIPT_VERIFY_FLAGS)

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard
fun checkMinimalEncoding(): Boolean
Link copied to clipboard
fun checkSignature(    pubKey: ByteVector,     sigBytes: ByteVector,     scriptCode: ByteVector,     signatureVersion: Int): Boolean
fun checkSignature(    pubKey: ByteArray,     sigBytes: ByteArray,     scriptCode: ByteArray,     signatureVersion: Int): Boolean
Link copied to clipboard
fun checkSignatureEcdsa(    pubKey: ByteArray,     sigBytes: ByteArray,     scriptCode: ByteArray,     signatureVersion: Int): Boolean
Link copied to clipboard
tailrec fun checkSignatures(    pubKeys: List<ByteVector>,     sigs: List<ByteVector>,     scriptCode: ByteVector,     signatureVersion: Int): Boolean
Link copied to clipboard
fun checkSignatureSchnorr(    pubKey: ByteArray,     sigBytes: ByteArray,     signatureVersion: Int): Boolean
Link copied to clipboard
fun decodeNumber(input: ByteVector, maximumSize: Int = 4): Long
fun decodeNumber(input: ByteArray, maximumSize: Int = 4): Long
Link copied to clipboard
fun run(script: ByteArray, signatureVersion: Int): List<ByteVector>
fun run(script: List<ScriptElt>, signatureVersion: Int): List<ByteVector>
fun run(    script: ByteVector,     stack: List<ByteVector>,     signatureVersion: Int): List<ByteVector>
fun run(    script: ByteArray,     stack: List<ByteVector>,     signatureVersion: Int): List<ByteVector>
fun run(    script: List<ScriptElt>,     stack: List<ByteVector>,     signatureVersion: Int): List<ByteVector>
Link copied to clipboard
fun verifyScripts(scriptSig: ByteArray, scriptPubKey: ByteArray): Boolean
fun verifyScripts(    scriptSig: ByteVector,     scriptPubKey: ByteVector,     witness: ScriptWitness): Boolean

fun verifyScripts(    scriptSig: ByteArray,     scriptPubKey: ByteArray,     witness: ScriptWitness): Boolean

verify a script sig/script pubkey pair:

Link copied to clipboard
fun verifyWitnessProgram(    witness: ScriptWitness,     witnessVersion: Long,     program: ByteArray,     isP2sh: Boolean = false)

Properties

Link copied to clipboard
val context: Script.Context
Link copied to clipboard
val scriptFlag: Int