Class/Object

com.alexdupre.bitcoincash.Script

Runner

Related Docs: object Runner | package Script

Permalink

class Runner extends AnyRef

Bitcoin script runner

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Runner
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new Runner(context: Context, scriptFlag: Int = MANDATORY_SCRIPT_VERIFY_FLAGS, callback: Option[Callback] = None)

    Permalink

    context

    script execution context

    scriptFlag

    script flags

    callback

    optional callback

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  5. def checkMinimalEncoding: Boolean

    Permalink
  6. def checkSignature(pubKey: Seq[Byte], sigBytes: Seq[Byte], scriptCode: Seq[Byte], supportSchnorr: Boolean): Boolean

    Permalink
  7. def checkSignatures(pubKeys: Seq[Seq[Byte]], sigs: Seq[Seq[Byte]], scriptCode: Seq[Byte], supportSchnorr: Boolean): Boolean

    Permalink
  8. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  9. def decodeNumber(input: Seq[Byte], maximumSize: Int = 4): Long

    Permalink
  10. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  11. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  12. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  13. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  14. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  15. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  16. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  17. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  18. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  19. final def run(script: List[ScriptElt], stack: Stack, state: State): Stack

    Permalink

    execute a bitcoin script

    execute a bitcoin script

    script

    script

    stack

    initial stack

    state

    initial state

    returns

    the stack updated by the script

    Annotations
    @tailrec()
  20. def run(script: List[ScriptElt], stack: Stack): Stack

    Permalink

    execute a script, starting from an existing stack

    execute a script, starting from an existing stack

    script

    serialized script

    stack

    initial stack

    returns

    the stack updated by the script

  21. def run(script: BinaryData, stack: Stack): Stack

    Permalink

    execute a serialized script, starting from an existing stack

    execute a serialized script, starting from an existing stack

    script

    serialized script

    stack

    initial stack

    returns

    the stack updated by the script

  22. def run(script: List[ScriptElt]): Stack

    Permalink

    execute a script, starting from an empty stack

    execute a script, starting from an empty stack

    returns

    the stack created by the script

  23. def run(script: BinaryData): Stack

    Permalink

    execute a serialized script, starting from an empty stack

    execute a serialized script, starting from an empty stack

    script

    serialized script

    returns

    the stack created by the script

  24. var scriptFlag: Int

    Permalink

    script flags

  25. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  26. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  27. def verifyScripts(scriptSig: BinaryData, scriptPubKey: BinaryData): Boolean

    Permalink

    verify a script sig/script pubkey pair:

    verify a script sig/script pubkey pair:

    • parse and run script sig
    • parse and run script pubkey using the stack generated by the previous step
    • check the final stack
    • extract and run embedded pay2sh scripts if any and check the stack again
    scriptSig

    signature script

    scriptPubKey

    public key script

    returns

    true if the scripts were successfully verified

  28. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  29. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  30. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from AnyRef

Inherited from Any

Ungrouped