object HashType extends Factory[HashType]
- Alphabetic
- By Inheritance
- HashType
- 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(byte: Byte): HashType
- def apply(num: Int): HashType
- def apply(hex: String): HashType
Creates a T from a hex string.
Creates a T from a hex string.
- Definition Classes
- Factory
- def apply(bytes: ByteVector): HashType
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 byte(hashType: HashType): Byte
Returns a hashtype's default byte value
- 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 fromByte(byte: Byte): HashType
- def fromBytes(bytes: ByteVector): HashType
Creates a T out of a sequence of bytes.
- def fromBytesLE(bytes: ByteVector): HashType
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[HashType]
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[HashType]
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): HashType
Creates a T out of a hex string.
Creates a T out of a hex string.
- Definition Classes
- Factory
- def fromHexLE(hex: String): HashType
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[HashType]
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[HashType]
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 fromNumber(num: Int): HashType
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- lazy val hashTypeBytes: Vector[Byte]
- lazy val hashTypes: Seq[Product with HashType with Serializable]
- def isAnyoneCanPay(hashType: HashType): Boolean
Checks if the given hash type has the ANYONECANPAY bit set
- def isDefinedHashtypeSignature(sig: ECDigitalSignature): Boolean
Checks if the given digital signature has a valid hash type Mimics this functionality inside of Bitcoin Core https://github.com/bitcoin/bitcoin/blob/b83264d9c7a8ddb79f64bd9540caddc8632ef31f/src/script/interpreter.cpp#L186
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def isOnlyAnyoneCanPay(num: Int): Boolean
- def isSigHashAll(num: Int): Boolean
- def isSigHashAllAnyoneCanPay(num: Int): Boolean
- def isSigHashAllOne(num: Int): Boolean
- def isSigHashAnyoneCanPay(num: Int): Boolean
- def isSigHashDefault(num: Int): Boolean
- def isSigHashNone(num: Int): Boolean
- def isSigHashNoneAnyoneCanPay(num: Int): Boolean
- def isSigHashSingle(num: Int): Boolean
- def isSigHashSingleAnyoneCanPay(num: Int): 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[HashType]
Allows a
def foo[C: Factory]()
construction.Allows a
def foo[C: Factory]()
construction.- Definition Classes
- Factory
- val sigHashAll: SIGHASH_ALL
The default SIGHASH_ALL value
- val sigHashAllAnyoneCanPay: SIGHASH_ALL_ANYONECANPAY
- val sigHashAllAnyoneCanPayByte: Byte
- val sigHashAllAnyoneCanPayNum: Int
- val sigHashAllByte: Byte
The default byte used to represent SIGHASH_ALL
- val sigHashAnyoneCanPay: SIGHASH_ANYONECANPAY
- val sigHashAnyoneCanPayByte: Byte
- val sigHashAnyoneCanPayNum: Int
The default num for SIGHASH_ANYONECANPAY We need this for serialization of HashType flags inside of org.bitcoins.core.crypto.TransactionSignatureSerializer
The default num for SIGHASH_ANYONECANPAY We need this for serialization of HashType flags inside of org.bitcoins.core.crypto.TransactionSignatureSerializer
Have to be careful using this value, since native scala numbers are signed We need this because this serializes to 0x00000080 instead of 0xffffff80 If we try to use Int(sigHashAnyoneCanPayByte) we will get the latter serialization because all native scala numbers are signed
- val sigHashDefault: SIGHASH_DEFAULT.type
- val sigHashDefaultByte: Byte
- val sigHashNone: SIGHASH_NONE
- val sigHashNoneAnyoneCanPay: SIGHASH_NONE_ANYONECANPAY
- val sigHashNoneAnyoneCanPayByte: Byte
- val sigHashNoneAnyoneCanPayNum: Int
- val sigHashNoneByte: Byte
The default byte for SIGHASH_NONE
- val sigHashSingle: SIGHASH_SINGLE
- val sigHashSingleAnyoneCanPay: SIGHASH_SINGLE_ANYONECANPAY
- val sigHashSingleAnyoneCanPayByte: Byte
- val sigHashSingleAnyoneCanPayNum: Int
- val sigHashSingleByte: Byte
The default byte for SIGHASH_SINGLE
- 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()