Class

org.bitcoins.core.script

ExecutionInProgressScriptProgram

Related Doc: package script

Permalink

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. Serializable
  4. Product
  5. Equals
  6. StartedScriptProgram
  7. ScriptProgram
  8. AnyRef
  9. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

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)

    Permalink

    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

    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. def addCondition(condition: Boolean): ExecutionInProgressScriptProgram

    Permalink

    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]

    Permalink

    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

    Permalink
    Definition Classes
    Any
  7. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  8. val conditionalCounter: ConditionalCounter

    Permalink

    Keeps track of where we are within a conditional tree.

  9. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  10. def failExecution(error: ScriptError): ExecutedScriptProgram

    Permalink

    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. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  12. val flags: Seq[ScriptFlag]

    Permalink

    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
  13. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  14. def invertCondition(): StartedScriptProgram

    Permalink

    Should be called on for every OP_ELSE

  15. def isInExecutionBranch: Boolean

    Permalink

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

  16. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  17. val lastCodeSeparator: Option[Int]

    Permalink

    The index of the last OP_CODESEPARATOR

  18. final def ne(arg0: AnyRef): Boolean

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

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

    Permalink
    Definition Classes
    AnyRef
  21. val originalScript: List[ScriptToken]

    Permalink

    The original script that was given.

    The original script that was given.

    Definition Classes
    ExecutionInProgressScriptProgramScriptProgram
  22. def removeCondition(): StartedScriptProgram

    Permalink

    Should be called on for every OP_ENDIF

  23. def removeFlags(): ExecutionInProgressScriptProgram

    Permalink

    Removes the flags on the given ScriptProgram

  24. def replaceFlags(newFlags: Seq[ScriptFlag]): ExecutionInProgressScriptProgram

    Permalink
  25. val script: List[ScriptToken]

    Permalink

    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

    Permalink

    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]

    Permalink

    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

    Permalink

    Returns true if the stack top is false

    Returns true if the stack top is false

    Definition Classes
    ScriptProgram
  29. def stackTopIsTrue: Boolean

    Permalink

    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

    Permalink
    Definition Classes
    AnyRef
  31. def toExecutedProgram: ExecutedScriptProgram

    Permalink
  32. val txSignatureComponent: TxSigComponent

    Permalink

    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

    Permalink
  34. def updateLastCodeSeparator(newLastCodeSeparator: Int): ExecutionInProgressScriptProgram

    Permalink
  35. def updateOriginalScript(tokens: Seq[ScriptToken]): ExecutionInProgressScriptProgram

    Permalink
  36. def updateScript(tokens: Seq[ScriptToken]): ExecutionInProgressScriptProgram

    Permalink
  37. def updateStack(tokens: Seq[ScriptToken]): ExecutionInProgressScriptProgram

    Permalink
  38. def updateStackAndScript(stack: Seq[ScriptToken], script: Seq[ScriptToken]): ExecutionInProgressScriptProgram

    Permalink
  39. final def wait(): Unit

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

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

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

Inherited from Serializable

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from StartedScriptProgram

Inherited from ScriptProgram

Inherited from AnyRef

Inherited from Any

Ungrouped