Packages

object TaprootScriptPubKey extends Factory[TaprootScriptPubKey] with ScriptFactory[TaprootScriptPubKey] with Serializable

Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. TaprootScriptPubKey
  2. Serializable
  3. ScriptFactory
  4. Factory
  5. AnyRef
  6. 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. def apply(xOnlyPubKey: XOnlyPubKey): TaprootScriptPubKey
  5. def apply(hex: String): TaprootScriptPubKey

    Creates a T from a hex string.

    Creates a T from a hex string.

    Definition Classes
    Factory
  6. def apply(bytes: ByteVector): TaprootScriptPubKey

    Creates a T out of a sequence of bytes.

    Creates a T out of a sequence of bytes.

    Definition Classes
    Factory
  7. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  8. def buildScript(asm: Vector[ScriptToken], constructor: (Vector[ScriptToken]) => TaprootScriptPubKey, errorMsg: String): TaprootScriptPubKey

    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
  9. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native()
  10. def computeMerkleRoot(controlBlock: ControlBlock): Sha256Digest
  11. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  12. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  13. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable])
  14. def fromAsm(asm: Seq[ScriptToken]): TaprootScriptPubKey

    Creates a T from the given ScriptTokens

    Creates a T from the given ScriptTokens

    Definition Classes
    TaprootScriptPubKeyScriptFactory
  15. def fromAsmBytes(bytes: ByteVector): TaprootScriptPubKey

    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): TaprootScriptPubKey

    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): TaprootScriptPubKey

    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): TaprootScriptPubKey

    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 fromBytesOpt(bytes: ByteVector): Option[TaprootScriptPubKey]

    Deserializes the given ByteVector to a T If the ByteVector is not correct, None is returned

    Deserializes the given ByteVector to a T If the ByteVector is not correct, None is returned

    Definition Classes
    Factory
  20. def fromBytesT(bytes: ByteVector): Try[TaprootScriptPubKey]

    Deserializes the given ByteVector string if the ByteVector is not correct, we give you a Failure

    Deserializes the given ByteVector string if the ByteVector is not correct, we give you a Failure

    Definition Classes
    Factory
  21. def fromHex(hex: String): TaprootScriptPubKey

    Creates a T out of a hex string.

    Creates a T out of a hex string.

    Definition Classes
    Factory
  22. def fromHexLE(hex: String): TaprootScriptPubKey

    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
  23. def fromHexOpt(hex: String): Option[TaprootScriptPubKey]

    Deserializes the given hex string to a T If the hex is not correct, None is returned

    Deserializes the given hex string to a T If the hex is not correct, None is returned

    Definition Classes
    Factory
  24. def fromHexT(hex: String): Try[TaprootScriptPubKey]

    Deserializes the given hex string if the hex is not correct, we give you a Failure

    Deserializes the given hex string if the hex is not correct, we give you a Failure

    Definition Classes
    Factory
  25. def fromInternalKey(xOnlyPubKey: XOnlyPubKey): TaprootScriptPubKey

    Computes a TaprootScriptPubKey from a given internal key with no TaprootScriptPath If the spending conditions do not require a script path, the output key should commit to an unspendable script path instead of having no script path.

    Computes a TaprootScriptPubKey from a given internal key with no TaprootScriptPath If the spending conditions do not require a script path, the output key should commit to an unspendable script path instead of having no script path. This can be achieved by computing the output key point as Q = P + int(hashTapTweak(bytes(P)))G.

    See also

    https://github.com/bitcoin/bips/blob/master/bip-0341.mediawiki#constructing-and-spending-taproot-outputs

  26. def fromInternalKeyTapscriptTree(internal: XOnlyPubKey, tree: TapscriptTree): (KeyParity, TaprootScriptPubKey)
  27. def fromPubKey(schnorrPublicKey: SchnorrPublicKey): TaprootScriptPubKey
  28. def fromPubKey(xOnlyPubKey: XOnlyPubKey): TaprootScriptPubKey
  29. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  30. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  31. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  32. def isValidAsm(asm: Seq[ScriptToken]): Boolean

    Determines if the given asm is a valid T

    Determines if the given asm is a valid T

    Definition Classes
    TaprootScriptPubKeyScriptFactory
  33. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  34. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  35. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  36. implicit def self: Factory[TaprootScriptPubKey]

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

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

    Definition Classes
    Factory
  37. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  38. def toString(): String
    Definition Classes
    AnyRef → Any
  39. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  40. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  41. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()

Inherited from Serializable

Inherited from AnyRef

Inherited from Any

Ungrouped