Packages

object BlockHeader extends Factory[BlockHeader]

Companion object used for creating BlockHeaders

Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. BlockHeader
  2. Factory
  3. AnyRef
  4. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Type Members

  1. case class TargetDifficultyHelper(difficulty: BigInt, isNegative: Boolean, isOverflow: Boolean) extends Product with Serializable

    Return type used to carry around extra information about the difficulty required to mine a block.

    Return type used to carry around extra information about the difficulty required to mine a block. Unfortunately there is weird corner cases like it being an overflow or negative which is returned by arith_uint256#SetCompact() in bitcoin core

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(version: Int32, previousBlockHash: DoubleSha256Digest, merkleRootHash: DoubleSha256Digest, time: UInt32, nBits: UInt32, nonce: UInt32): BlockHeader
  5. def apply(hex: String): BlockHeader

    Creates a T from a hex string.

    Creates a T from a hex string.

    Definition Classes
    Factory
  6. def apply(bytes: ByteVector): BlockHeader

    Creates a T out of a sequence of bytes.

    Creates a T out of a sequence of bytes.

    Definition Classes
    Factory
  7. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  8. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native() @HotSpotIntrinsicCandidate()
  9. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  10. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  11. def fromBytes(bytes: ByteVector): BlockHeader

    Creates a T out of a sequence of bytes.

    Creates a T out of a sequence of bytes.

    Definition Classes
    BlockHeaderFactory
  12. def fromBytesLE(bytes: ByteVector): BlockHeader

    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
  13. def fromHex(hex: String): BlockHeader

    Creates a T out of a hex string.

    Creates a T out of a hex string.

    Definition Classes
    Factory
  14. def fromHexLE(hex: String): BlockHeader

    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
  15. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  16. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  17. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  18. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  19. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  20. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  21. implicit def self: Factory[BlockHeader]

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

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

    Definition Classes
    Factory
  22. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  23. def toString(): String
    Definition Classes
    AnyRef → Any
  24. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  25. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  26. 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[BlockHeader]

Inherited from AnyRef

Inherited from Any

Ungrouped