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 clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native()
  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 fromByte(byte: Byte): HashType
  15. 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
  16. 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
  17. 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
  18. 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
  19. def fromHex(hex: String): HashType

    Creates a T out of a hex string.

    Creates a T out of a hex string.

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

    Checks if the given hash type has the ANYONECANPAY bit set

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

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

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

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

    Definition Classes
    Factory
  45. val sigHashAll: SIGHASH_ALL

    The default SIGHASH_ALL value

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

    The default byte used to represent SIGHASH_ALL

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

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

    The default byte for SIGHASH_NONE

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

    The default byte for SIGHASH_SINGLE

  65. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  66. def toString(): String
    Definition Classes
    AnyRef → Any
  67. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  68. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  69. 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