Packages

object LockTimeInterpreter extends LockTimeInterpreter

Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. LockTimeInterpreter
  2. LockTimeInterpreter
  3. AnyRef
  4. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

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. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. def checkSequence(program: ExecutionInProgressScriptProgram, nSequence: ScriptNumber): Boolean

    program

    the program whose transaction input's sequence is being compared

    nSequence

    the script number on the stack top to compare to the input's sequence number

    returns

    if the given script number is valid or not

    Definition Classes
    LockTimeInterpreter
    See also

    Mimics this function inside of Bitcoin Core

    BIP68

  6. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native()
  7. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  8. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  9. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable])
  10. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  11. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  12. def isCSVLockByBlockHeight(scriptNumber: ScriptNumber): Boolean
    Definition Classes
    LockTimeInterpreter
  13. def isCSVLockByBlockHeight(sequence: UInt32): Boolean
    Definition Classes
    LockTimeInterpreter
  14. def isCSVLockByBlockHeight(scriptNumber: ScriptNumber, sequence: UInt32): Boolean

    Checks if the given ScriptNumber and UInt32 are valid values for spending a OP_CSV value by block height

    Checks if the given ScriptNumber and UInt32 are valid values for spending a OP_CSV value by block height

    Definition Classes
    LockTimeInterpreter
  15. def isCSVLockByRelativeLockTime(sequence: UInt32): Boolean
    Definition Classes
    LockTimeInterpreter
  16. def isCSVLockByRelativeLockTime(scriptNumber: ScriptNumber): Boolean
    Definition Classes
    LockTimeInterpreter
  17. def isCSVLockByRelativeLockTime(number: ScriptNumber, sequence: UInt32): Boolean

    Checks if the given ScriptNumber and UInt32 are valid values for spending an OP_CSV value by time based relative lock time

    Checks if the given ScriptNumber and UInt32 are valid values for spending an OP_CSV value by time based relative lock time

    Definition Classes
    LockTimeInterpreter
  18. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  19. def isLockTimeBitOff(num: Int64): Boolean
    Definition Classes
    LockTimeInterpreter
  20. def isLockTimeBitOff(s: ScriptNumber): Boolean

    The ScriptNumber on the stack has the disable flag (1 << 31) unset.

    The ScriptNumber on the stack has the disable flag (1 << 31) unset.

    Definition Classes
    LockTimeInterpreter
  21. def maskScriptNumber(scriptNumber: ScriptNumber): ScriptNumber

    Masks the given ScriptNumber according to BIP112

    Masks the given ScriptNumber according to BIP112

    Definition Classes
    LockTimeInterpreter
  22. def maskSequenceNumber(sequence: UInt32): Int64
    Definition Classes
    LockTimeInterpreter
  23. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  24. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  25. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  26. final def opCheckLockTimeVerify(program: ExecutionInProgressScriptProgram): StartedScriptProgram

    Marks transaction as invalid if the top stack item is greater than the transaction's nLockTime field, otherwise script evaluation continues as though an OP_NOP was executed.

    Marks transaction as invalid if the top stack item is greater than the transaction's nLockTime field, otherwise script evaluation continues as though an OP_NOP was executed. Transaction is also invalid if

    1. the stack is empty; or 2. the top stack item is negative; or 3. the top stack item is greater than or equal to 500000000 while the transaction's nLockTime field is less than 500000000, or vice versa; or 4. the input's nSequence field is equal to 0xffffffff. The precise semantics are described in BIP 0065
    Definition Classes
    LockTimeInterpreter
    Annotations
    @tailrec()
  27. final def opCheckSequenceVerify(program: ExecutionInProgressScriptProgram): StartedScriptProgram

    When executed, if any of the following conditions are true, the script interpreter will terminate with an error: 1.) the stack is empty; or 2.) the top item on the stack is less than 0; or 3.) the top item on the stack has the disable flag (1 << 31) unset; and the transaction version is less than 2; or the transaction input sequence number disable flag (1 << 31) is set; or the relative lock-time type is not the same; or the top stack item is greater than the transaction sequence (when masked according to the BIP68); Otherwise, script execution will continue as if a NOP had been executed.

    When executed, if any of the following conditions are true, the script interpreter will terminate with an error: 1.) the stack is empty; or 2.) the top item on the stack is less than 0; or 3.) the top item on the stack has the disable flag (1 << 31) unset; and the transaction version is less than 2; or the transaction input sequence number disable flag (1 << 31) is set; or the relative lock-time type is not the same; or the top stack item is greater than the transaction sequence (when masked according to the BIP68); Otherwise, script execution will continue as if a NOP had been executed. See BIP112 for more information

    Definition Classes
    LockTimeInterpreter
    Annotations
    @tailrec()
  28. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  29. def toString(): String
    Definition Classes
    AnyRef → Any
  30. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  31. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  32. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()

Inherited from LockTimeInterpreter

Inherited from AnyRef

Inherited from Any

Ungrouped