object HashType extends Factory[HashType]

Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. HashType
  2. Factory
  3. AnyRef
  4. 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(byte: Byte): HashType
  5. def apply(num: Int): HashType
  6. def apply(hex: String): HashType

    Creates a T from a hex string.

    Creates a T from a hex string.

    Definition Classes
    Factory
  7. 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
  8. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  9. def byte(hashType: HashType): Byte

    Returns a hashtype's default byte value

  10. def checkTaprootHashType(hashType: HashType): Boolean
  11. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native()
  12. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  13. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  14. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable])
  15. def fromByte(byte: Byte): HashType
  16. def fromBytes(bytes: ByteVector): HashType

    Creates a T out of a sequence of bytes.

    Creates a T out of a sequence of bytes.

    Definition Classes
    HashTypeFactory
  17. 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
  18. 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
  19. 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
  20. def fromHex(hex: String): HashType

    Creates a T out of a hex string.

    Creates a T out of a hex string.

    Definition Classes
    Factory
  21. 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
  22. 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
  23. 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
  24. def fromNumber(num: Int): HashType
  25. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  26. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  27. lazy val hashTypeBytes: Vector[Byte]
  28. lazy val hashTypes: Seq[Product with HashType with Serializable]
  29. def isAnyoneCanPay(hashType: HashType): Boolean

    Checks if the given hash type has the ANYONECANPAY bit set

  30. 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

  31. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  32. def isOnlyAnyoneCanPay(num: Int): Boolean
  33. def isSigHashAll(num: Int): Boolean
  34. def isSigHashAllAnyoneCanPay(num: Int): Boolean
  35. def isSigHashAllOne(num: Int): Boolean
  36. def isSigHashAnyoneCanPay(num: Int): Boolean
  37. def isSigHashDefault(num: Int): Boolean
  38. def isSigHashNone(num: Int): Boolean
  39. def isSigHashNoneAnyoneCanPay(num: Int): Boolean
  40. def isSigHashSingle(num: Int): Boolean
  41. def isSigHashSingleAnyoneCanPay(num: Int): Boolean
  42. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  43. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  44. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  45. implicit def self: Factory[HashType]

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

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

    Definition Classes
    Factory
  46. val sigHashAll: SIGHASH_ALL

    The default SIGHASH_ALL value

  47. val sigHashAllAnyoneCanPay: SIGHASH_ALL_ANYONECANPAY
  48. val sigHashAllAnyoneCanPayByte: Byte
  49. val sigHashAllAnyoneCanPayNum: Int
  50. val sigHashAllByte: Byte

    The default byte used to represent SIGHASH_ALL

  51. val sigHashAnyoneCanPay: SIGHASH_ANYONECANPAY
  52. val sigHashAnyoneCanPayByte: Byte
  53. 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

  54. val sigHashDefault: SIGHASH_DEFAULT.type
  55. val sigHashDefaultByte: Byte
  56. val sigHashNone: SIGHASH_NONE
  57. val sigHashNoneAnyoneCanPay: SIGHASH_NONE_ANYONECANPAY
  58. val sigHashNoneAnyoneCanPayByte: Byte
  59. val sigHashNoneAnyoneCanPayNum: Int
  60. val sigHashNoneByte: Byte

    The default byte for SIGHASH_NONE

  61. val sigHashSingle: SIGHASH_SINGLE
  62. val sigHashSingleAnyoneCanPay: SIGHASH_SINGLE_ANYONECANPAY
  63. val sigHashSingleAnyoneCanPayByte: Byte
  64. val sigHashSingleAnyoneCanPayNum: Int
  65. val sigHashSingleByte: Byte

    The default byte for SIGHASH_SINGLE

  66. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  67. def toString(): String
    Definition Classes
    AnyRef → Any
  68. val validTaprootHashTypes: Vector[HashType]
  69. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  70. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  71. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()

Inherited from Factory[HashType]

Inherited from AnyRef

Inherited from Any

Ungrouped