Object/Trait

org.bitcoins.core.protocol.script

CLTVScriptPubKey

Related Docs: trait CLTVScriptPubKey | package script

Permalink

object CLTVScriptPubKey extends Factory[CLTVScriptPubKey] with ScriptFactory[CLTVScriptPubKey]

Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. CLTVScriptPubKey
  2. ScriptFactory
  3. Factory
  4. AnyRef
  5. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

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 apply(locktime: ScriptNumber, scriptPubKey: ScriptPubKey): CLTVScriptPubKey

    Permalink
  5. def apply(asm: Seq[ScriptToken]): CLTVScriptPubKey

    Permalink
  6. def apply(hex: String): CLTVScriptPubKey

    Permalink

    Creates a T from a hex string.

    Creates a T from a hex string.

    Definition Classes
    Factory
  7. def apply(bytes: ByteVector): CLTVScriptPubKey

    Permalink

    Creates a T out of a sequence of bytes.

    Creates a T out of a sequence of bytes.

    Definition Classes
    Factory
  8. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  9. def buildScript(asm: Vector[ScriptToken], constructor: (Vector[ScriptToken]) ⇒ CLTVScriptPubKey, invariant: (Seq[ScriptToken]) ⇒ Boolean, errorMsg: String): CLTVScriptPubKey

    Permalink

    Builds a script from the given asm with the given constructor if the invariant holds true, else throws an error

    Builds a script from the given asm with the given constructor if the invariant holds true, else throws an error

    Definition Classes
    ScriptFactory
  10. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  11. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  12. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  13. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  14. def fromAsm(asm: Seq[ScriptToken]): CLTVScriptPubKey

    Permalink

    Creates a T from the given ScriptTokens

    Creates a T from the given ScriptTokens

    Definition Classes
    CLTVScriptPubKeyScriptFactory
  15. def fromAsmBytes(bytes: ByteVector): CLTVScriptPubKey

    Permalink

    Scripts are serialized with a CompactSizeUInt at the beginning to indicate how long the Script is.

    Scripts are serialized with a CompactSizeUInt at the beginning to indicate how long the Script is. This construct assumes the CompactSizeUInt is NOT passed into the constructor. Only the actual Script program bytes.

    Definition Classes
    ScriptFactory
  16. def fromAsmHex(hex: String): CLTVScriptPubKey

    Permalink

    Scripts are serialized with a CompactSizeUInt at the beginning to indicate how long the ScriptSignature is .

    Scripts are serialized with a CompactSizeUInt at the beginning to indicate how long the ScriptSignature is . This construct assumes the CompactSizeUInt is NOT passed into the constructor. Only the actual Script program hex is.

    Definition Classes
    ScriptFactory
  17. def fromBytes(bytes: ByteVector): CLTVScriptPubKey

    Permalink

    Creates a T out of a sequence of bytes.

    Creates a T out of a sequence of bytes.

    Definition Classes
    ScriptFactoryFactory
  18. def fromBytesLE(bytes: ByteVector): CLTVScriptPubKey

    Permalink

    Creates a T out of a sequence of bytes in little endian.

    Creates a T out of a sequence of bytes in little endian.

    Definition Classes
    Factory
  19. def fromHex(hex: String): CLTVScriptPubKey

    Permalink

    Creates a T out of a hex string.

    Creates a T out of a hex string.

    Definition Classes
    Factory
  20. def fromHexLE(hex: String): CLTVScriptPubKey

    Permalink

    Creates a T out of a hex string in little endian.

    Creates a T out of a hex string in little endian.

    Definition Classes
    Factory
  21. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  22. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  23. def isCLTVScriptPubKey(asm: Seq[ScriptToken]): Boolean

    Permalink
  24. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  25. lazy val logger: Logger

    Permalink
    Definition Classes
    Factory
  26. final def ne(arg0: AnyRef): Boolean

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

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

    Permalink
    Definition Classes
    AnyRef
  29. implicit def self: Factory[CLTVScriptPubKey]

    Permalink

    Allows a def foo[C: Factory]() construction.

    Allows a def foo[C: Factory]() construction.

    Definition Classes
    Factory
  30. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  31. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  32. def validScriptAfterLockTime(asm: Seq[ScriptToken]): Boolean

    Permalink

    We need this check because sometimes we can get very lucky in having a non valid lock time script that has the first 4 bytes as a valid locktime script and then the bytes after the first 4 bytes gets lucky and is parsed by our ScriptParser A good way to see if this is _actually_ a valid script is by checking if we have any UndefinedOP_NOP in the script, which means we definitely don't have a valid locktime script

    We need this check because sometimes we can get very lucky in having a non valid lock time script that has the first 4 bytes as a valid locktime script and then the bytes after the first 4 bytes gets lucky and is parsed by our ScriptParser A good way to see if this is _actually_ a valid script is by checking if we have any UndefinedOP_NOP in the script, which means we definitely don't have a valid locktime script

    See this example of what happened before we added this check: Travis CI

  33. final def wait(): Unit

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

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

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

Inherited from Factory[CLTVScriptPubKey]

Inherited from AnyRef

Inherited from Any

Ungrouped