Packages

c

org.bitcoins.core.script

ExecutionInProgressScriptProgram

case class ExecutionInProgressScriptProgram(txSignatureComponent: TxSigComponent, stack: List[ScriptToken], script: List[ScriptToken], originalScript: List[ScriptToken], altStack: List[ScriptToken], flags: Seq[ScriptFlag], lastCodeSeparator: Option[Int], conditionalCounter: ConditionalCounter) extends StartedScriptProgram with Product with Serializable

Type for a ScriptProgram that is currently being evaluated by the ScriptInterpreter.

lastCodeSeparator

The index of the last OP_CODESEPARATOR

conditionalCounter

Keeps track of where we are within a conditional tree.

Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. ExecutionInProgressScriptProgram
  2. Serializable
  3. Product
  4. Equals
  5. StartedScriptProgram
  6. ScriptProgram
  7. AnyRef
  8. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

  1. new ExecutionInProgressScriptProgram(txSignatureComponent: TxSigComponent, stack: List[ScriptToken], script: List[ScriptToken], originalScript: List[ScriptToken], altStack: List[ScriptToken], flags: Seq[ScriptFlag], lastCodeSeparator: Option[Int], conditionalCounter: ConditionalCounter)

    lastCodeSeparator

    The index of the last OP_CODESEPARATOR

    conditionalCounter

    Keeps track of where we are within a conditional tree.

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. def addCondition(condition: Boolean): ExecutionInProgressScriptProgram

    Should be called for every OP_IF and OP_NOTIF with whether the first (true) or second (false) branch should be taken.

  5. val altStack: List[ScriptToken]

    The alternative stack is used in some Script op codes.

    The alternative stack is used in some Script op codes.

    Definition Classes
    ExecutionInProgressScriptProgramScriptProgram
  6. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  7. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native() @HotSpotIntrinsicCandidate()
  8. val conditionalCounter: ConditionalCounter
  9. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  10. def failExecution(error: ScriptError): ExecutedScriptProgram

    Sets a ScriptError on a given ScriptProgram.

    Sets a ScriptError on a given ScriptProgram.

    error

    the error that the program hit while being executed in the script interpreter

    returns

    the ExecutedScriptProgram with the given error set inside of the trait

    Definition Classes
    ExecutionInProgressScriptProgramScriptProgram
  11. val flags: Seq[ScriptFlag]

    ScriptFlag that are run with the script.

    ScriptFlag that are run with the script. These flags indicate special conditions that a script needs to be run with. https://github.com/bitcoin/bitcoin/blob/master/src/script/interpreter.h#L31

    Definition Classes
    ExecutionInProgressScriptProgramScriptProgram
  12. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  13. def invertCondition(): StartedScriptProgram

    Should be called on for every OP_ELSE

  14. def isInExecutionBranch: Boolean

    Non-conditional opcodes should be executed only if this is true

  15. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  16. val lastCodeSeparator: Option[Int]
  17. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  18. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  19. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  20. val originalScript: List[ScriptToken]

    The original script that was given.

    The original script that was given.

    Definition Classes
    ExecutionInProgressScriptProgramScriptProgram
  21. def productElementNames: Iterator[String]
    Definition Classes
    Product
  22. def removeCondition(): StartedScriptProgram

    Should be called on for every OP_ENDIF

  23. def removeFlags(): ExecutionInProgressScriptProgram

    Removes the flags on the given ScriptProgram

  24. def replaceFlags(newFlags: Seq[ScriptFlag]): ExecutionInProgressScriptProgram
  25. val script: List[ScriptToken]

    The script operations that need to still be executed.

    The script operations that need to still be executed.

    Definition Classes
    ExecutionInProgressScriptProgramScriptProgram
  26. def shouldExecuteNextOperation: Boolean

    ScriptInterpreter should look at the script head only if this is true.

    ScriptInterpreter should look at the script head only if this is true.

    Note that OP_IF, OP_NOTIF, OP_ELSE, and OP_ENDIF must be executed even if isInExecutionBranch is false as they must modify the states of trueCount and falseAndIgnoreCount.

  27. val stack: List[ScriptToken]

    The current state of the stack for execution of the ScriptProgram.

    The current state of the stack for execution of the ScriptProgram.

    Definition Classes
    ExecutionInProgressScriptProgramScriptProgram
  28. def stackTopIsFalse: Boolean

    Returns true if the stack top is false

    Returns true if the stack top is false

    Definition Classes
    ScriptProgram
  29. def stackTopIsTrue: Boolean

    Returns true if the stack top is true

    Returns true if the stack top is true

    Definition Classes
    ScriptProgram
  30. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  31. def toExecutedProgram: ExecutedScriptProgram
  32. val txSignatureComponent: TxSigComponent

    This contains all relevant information for hashing and checking a ScriptSignature for a Transaction.

    This contains all relevant information for hashing and checking a ScriptSignature for a Transaction.

    Definition Classes
    ExecutionInProgressScriptProgramScriptProgram
  33. def updateAltStack(tokens: Seq[ScriptToken]): ExecutionInProgressScriptProgram
  34. def updateLastCodeSeparator(newLastCodeSeparator: Int): ExecutionInProgressScriptProgram
  35. def updateOriginalScript(tokens: Seq[ScriptToken]): ExecutionInProgressScriptProgram
  36. def updateScript(tokens: Seq[ScriptToken]): ExecutionInProgressScriptProgram
  37. def updateStack(tokens: Seq[ScriptToken]): ExecutionInProgressScriptProgram
  38. def updateStackAndScript(stack: Seq[ScriptToken], script: Seq[ScriptToken]): ExecutionInProgressScriptProgram
  39. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  40. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  41. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])

Deprecated Value Members

  1. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable]) @Deprecated @deprecated
    Deprecated

    (Since version ) see corresponding Javadoc for more information.

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from StartedScriptProgram

Inherited from ScriptProgram

Inherited from AnyRef

Inherited from Any

Ungrouped