object WitnessCommitment extends Factory[WitnessCommitment] with ScriptFactory[WitnessCommitment]
- Alphabetic
- By Inheritance
- WitnessCommitment
- ScriptFactory
- 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
- def apply(hash: DoubleSha256Digest): WitnessCommitment
- def apply(asm: Seq[ScriptToken]): WitnessCommitment
- def apply(hex: String): WitnessCommitment
Creates a T from a hex string.
Creates a T from a hex string.
- Definition Classes
- Factory
- def apply(bytes: ByteVector): WitnessCommitment
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 buildScript(asm: Vector[ScriptToken], constructor: (Vector[ScriptToken]) => WitnessCommitment, errorMsg: String): WitnessCommitment
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
- 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])
- def fromAsm(asm: Seq[ScriptToken]): WitnessCommitment
Creates a T from the given ScriptTokens
Creates a T from the given ScriptTokens
- Definition Classes
- WitnessCommitment → ScriptFactory
- def fromAsmBytes(bytes: ByteVector): WitnessCommitment
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
- def fromAsmHex(hex: String): WitnessCommitment
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
- def fromBytes(bytes: ByteVector): WitnessCommitment
Creates a T out of a sequence of bytes.
Creates a T out of a sequence of bytes.
- Definition Classes
- ScriptFactory → Factory
- def fromBytesLE(bytes: ByteVector): WitnessCommitment
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[WitnessCommitment]
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[WitnessCommitment]
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): WitnessCommitment
Creates a T out of a hex string.
Creates a T out of a hex string.
- Definition Classes
- Factory
- def fromHexLE(hex: String): WitnessCommitment
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[WitnessCommitment]
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[WitnessCommitment]
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
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def isValidAsm(asm: Seq[ScriptToken]): Boolean
This determines if the given asm has the correct witness structure according to BIP141
This determines if the given asm has the correct witness structure according to BIP141
- Definition Classes
- WitnessCommitment → ScriptFactory
- 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[WitnessCommitment]
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
- 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()