object LockTimeInterpreter extends LockTimeInterpreter
- Alphabetic
- By Inheritance
- LockTimeInterpreter
- 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
- Definition Classes
- LockTimeInterpreter
- 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
- Definition Classes
- LockTimeInterpreter
- def isCSVLockByBlockHeight(sequence: UInt32): Boolean
- Definition Classes
- LockTimeInterpreter
- 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
- def isCSVLockByRelativeLockTime(sequence: UInt32): Boolean
- Definition Classes
- LockTimeInterpreter
- def isCSVLockByRelativeLockTime(scriptNumber: ScriptNumber): Boolean
- Definition Classes
- LockTimeInterpreter
- 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
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def isLockTimeBitOff(num: Int64): Boolean
- Definition Classes
- LockTimeInterpreter
- 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
- def maskScriptNumber(scriptNumber: ScriptNumber): ScriptNumber
Masks the given ScriptNumber according to BIP112
Masks the given ScriptNumber according to BIP112
- Definition Classes
- LockTimeInterpreter
- def maskSequenceNumber(sequence: UInt32): Int64
- Definition Classes
- LockTimeInterpreter
- 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
- Definition Classes
- LockTimeInterpreter
- 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- Definition Classes
- LockTimeInterpreter
- 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()