object TaprootScriptPath extends Factory[TaprootScriptPath] with Serializable
- Alphabetic
- By Inheritance
- TaprootScriptPath
- Serializable
- Factory
- 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 val TAPROOT_CONTROL_BASE_SIZE: Byte
- final val TAPROOT_CONTROL_MAX_NODE_COUNT: Int
- final val TAPROOT_CONTROL_MAX_SIZE: Int
- final val TAPROOT_CONTROL_NODE_SIZE: Byte
- final val TAPROOT_LEAF_MASK: Byte
- final val TAPROOT_LEAF_TAPSCRIPT: Byte
- final val annex: Byte
- final val annexOpt: Option[Byte]
- def apply(controlBlock: TapscriptControlBlock, annexOpt: Option[ByteVector], spk: RawScriptPubKey): TaprootScriptPath
- def apply(hex: String): TaprootScriptPath
Creates a T from a hex string.
Creates a T from a hex string.
- Definition Classes
- Factory
- def apply(bytes: ByteVector): TaprootScriptPath
Creates a T out of a sequence of bytes.
Creates a T out of a sequence of bytes.
- Definition Classes
- Factory
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- def computeFullTreeMerkleRoot(tree: TapscriptTree): Sha256Digest
- def computeTapleafHash(leaf: TapLeaf): Sha256Digest
Computes the hash of the script that is a leaf in the tapscript tree
Computes the hash of the script that is a leaf in the tapscript tree
- See also
https://github.com/bitcoin/bitcoin/blob/37633d2f61697fc719390767aae740ece978b074/src/script/interpreter.cpp#L1828
- def computeTaprootMerkleRoot(controlBlock: ControlBlock, tapLeafHash: Sha256Digest): Sha256Digest
Computes the merkle root of a tapscript tree
Computes the merkle root of a tapscript tree
- See also
https://github.com/bitcoin/bitcoin/blob/37633d2f61697fc719390767aae740ece978b074/src/script/interpreter.cpp#L1833
- 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])
- def fromBytes(bytes: ByteVector): TaprootScriptPath
Creates a T out of a sequence of bytes.
Creates a T out of a sequence of bytes.
- Definition Classes
- TaprootScriptPath → Factory
- def fromBytesLE(bytes: ByteVector): TaprootScriptPath
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
- def fromBytesOpt(bytes: ByteVector): Option[TaprootScriptPath]
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
- def fromBytesT(bytes: ByteVector): Try[TaprootScriptPath]
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
- def fromHex(hex: String): TaprootScriptPath
Creates a T out of a hex string.
Creates a T out of a hex string.
- Definition Classes
- Factory
- def fromHexLE(hex: String): TaprootScriptPath
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
- def fromHexOpt(hex: String): Option[TaprootScriptPath]
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
- def fromHexT(hex: String): Try[TaprootScriptPath]
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
- def fromStack(stack: Vector[ByteVector]): TaprootScriptPath
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def hasAnnex(stack: Vector[ByteVector]): Boolean
Checks the witness stack has an annex in it
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def isValid(stack: Vector[ByteVector]): Boolean
- 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()
- implicit def self: Factory[TaprootScriptPath]
Allows a
def foo[C: Factory]()
construction.Allows a
def foo[C: Factory]()
construction.- Definition Classes
- Factory
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- def verifyTaprootCommitment(controlBlock: ControlBlock, program: TaprootScriptPubKey, tapLeafHash: Sha256Digest): Boolean
- 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()