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(int: Int): HashType
  6. def apply(num: Int32): HashType
  7. def apply(hex: String): HashType

    Creates a T from a hex string.

    Creates a T from a hex string.

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

    Returns a hashtype's default byte value

  11. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native() @HotSpotIntrinsicCandidate()
  12. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  13. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  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 fromHex(hex: String): HashType

    Creates a T out of a hex string.

    Creates a T out of a hex string.

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

    Checks if the given hash type has the ANYONECANPAY bit set

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

  26. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  27. def isOnlyAnyoneCanPay(num: Int32): Boolean
  28. def isSigHashAll(num: Int32): Boolean
  29. def isSigHashAllAnyoneCanPay(num: Int32): Boolean
  30. def isSigHashAllOne(num: Int32): Boolean
  31. def isSigHashAnyoneCanPay(num: Int32): Boolean
  32. def isSigHashNone(num: Int32): Boolean
  33. def isSigHashNoneAnyoneCanPay(num: Int32): Boolean
  34. def isSigHashSingle(num: Int32): Boolean
  35. def isSigHashSingleAnyoneCanPay(num: Int32): Boolean
  36. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  37. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  38. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  39. implicit def self: Factory[HashType]

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

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

    Definition Classes
    Factory
  40. val sigHashAll: SIGHASH_ALL

    The default SIGHASH_ALL value

  41. val sigHashAllAnyoneCanPay: SIGHASH_ALL_ANYONECANPAY
  42. val sigHashAllAnyoneCanPayByte: Byte
  43. val sigHashAllAnyoneCanPayNum: Int32
  44. val sigHashAllByte: Byte

    The default byte used to represent SIGHASH_ALL

  45. val sigHashAnyoneCanPay: SIGHASH_ANYONECANPAY
  46. val sigHashAnyoneCanPayByte: Byte
  47. val sigHashAnyoneCanPayNum: Int32

    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 Int32(sigHashAnyoneCanPayByte) we will get the latter serialization because all native scala numbers are signed

  48. val sigHashNone: SIGHASH_NONE
  49. val sigHashNoneAnyoneCanPay: SIGHASH_NONE_ANYONECANPAY
  50. val sigHashNoneAnyoneCanPayByte: Byte
  51. val sigHashNoneAnyoneCanPayNum: Int32
  52. val sigHashNoneByte: Byte

    The default byte for SIGHASH_NONE

  53. val sigHashSingle: SIGHASH_SINGLE
  54. val sigHashSingleAnyoneCanPay: SIGHASH_SINGLE_ANYONECANPAY
  55. val sigHashSingleAnyoneCanPayByte: Byte
  56. val sigHashSingleAnyoneCanPayNum: Int32
  57. val sigHashSingleByte: Byte

    The default byte for SIGHASH_SINGLE

  58. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  59. def toString(): String
    Definition Classes
    AnyRef → Any
  60. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  61. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  62. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])

Deprecated Value Members

  1. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable]) @Deprecated @deprecated
    Deprecated

    (Since version ) see corresponding Javadoc for more information.

Inherited from Factory[HashType]

Inherited from AnyRef

Inherited from Any

Ungrouped