sealed abstract class LockTimeInterpreter extends AnyRef
Created by chris on 2/8/16.
- Alphabetic
- By Inheritance
- LockTimeInterpreter
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- 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
- See also
Mimics this function inside of Bitcoin Core
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable])
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def isCSVLockByBlockHeight(scriptNumber: ScriptNumber): Boolean
- def isCSVLockByBlockHeight(sequence: UInt32): Boolean
- 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
- def isCSVLockByRelativeLockTime(sequence: UInt32): Boolean
- def isCSVLockByRelativeLockTime(scriptNumber: ScriptNumber): Boolean
- 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
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def isLockTimeBitOff(num: Int64): Boolean
- def isLockTimeBitOff(s: ScriptNumber): Boolean
The ScriptNumber on the stack has the disable flag (1 << 31) unset.
- def maskScriptNumber(scriptNumber: ScriptNumber): ScriptNumber
Masks the given ScriptNumber according to BIP112
- def maskSequenceNumber(sequence: UInt32): Int64
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- 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 anOP_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 anOP_NOP
was executed. Transaction is also invalid if- 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
- Annotations
- @tailrec()
- 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
- 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- Annotations
- @tailrec()
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()