case class CHeader(id: Coll[Byte], version: Byte, parentId: Coll[Byte], ADProofsRoot: Coll[Byte], stateRoot: AvlTree, transactionsRoot: Coll[Byte], timestamp: Long, nBits: Long, height: Int, extensionRoot: Coll[Byte], minerPk: GroupElement, powOnetimePk: GroupElement, powNonce: Coll[Byte], powDistance: BigInt, votes: Coll[Byte]) extends Header with Product with Serializable

A default implementation of Header interface.

See also

Header for detailed descriptions

Linear Supertypes
Serializable, Serializable, Product, Equals, Header, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. CHeader
  2. Serializable
  3. Serializable
  4. Product
  5. Equals
  6. Header
  7. AnyRef
  8. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new CHeader(id: Coll[Byte], version: Byte, parentId: Coll[Byte], ADProofsRoot: Coll[Byte], stateRoot: AvlTree, transactionsRoot: Coll[Byte], timestamp: Long, nBits: Long, height: Int, extensionRoot: Coll[Byte], minerPk: GroupElement, powOnetimePk: GroupElement, powNonce: Coll[Byte], powDistance: BigInt, votes: Coll[Byte])

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. val ADProofsRoot: Coll[Byte]

    Hash of ADProofs for transactions in a block

    Hash of ADProofs for transactions in a block

    Definition Classes
    CHeaderHeader
  5. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  6. def clone(): AnyRef
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()
  7. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  8. val extensionRoot: Coll[Byte]

    Root hash of extension section

    Root hash of extension section

    Definition Classes
    CHeaderHeader
  9. def finalize(): Unit
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  10. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  11. val height: Int

    Block height

    Block height

    Definition Classes
    CHeaderHeader
  12. val id: Coll[Byte]

    Bytes representation of ModifierId of this Header

    Bytes representation of ModifierId of this Header

    Definition Classes
    CHeaderHeader
  13. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  14. val minerPk: GroupElement

    Miner public key.

    Miner public key. Should be used to collect block rewards. Part of Autolykos solution.

    Definition Classes
    CHeaderHeader
  15. val nBits: Long

    Current difficulty in a compressed view.

    Current difficulty in a compressed view. NOTE: actually it is unsigned Int

    Definition Classes
    CHeaderHeader
  16. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  17. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  18. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  19. val parentId: Coll[Byte]

    Bytes representation of ModifierId of the parent block

    Bytes representation of ModifierId of the parent block

    Definition Classes
    CHeaderHeader
  20. val powDistance: BigInt

    Distance between pseudo-random number, corresponding to nonce powNonce and a secret, corresponding to minerPk.

    Distance between pseudo-random number, corresponding to nonce powNonce and a secret, corresponding to minerPk. The lower powDistance is, the harder it was to find this solution.

    Definition Classes
    CHeaderHeader
  21. val powNonce: Coll[Byte]

    nonce

    nonce

    Definition Classes
    CHeaderHeader
  22. val powOnetimePk: GroupElement

    One-time public key.

    One-time public key. Prevents revealing of miners secret.

    Definition Classes
    CHeaderHeader
  23. val stateRoot: AvlTree

    AvlTree) of a state after block application

    AvlTree) of a state after block application

    Definition Classes
    CHeaderHeader
  24. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  25. val timestamp: Long

    Block timestamp (in milliseconds since beginning of Unix Epoch)

    Block timestamp (in milliseconds since beginning of Unix Epoch)

    Definition Classes
    CHeaderHeader
  26. val transactionsRoot: Coll[Byte]

    Root hash (for a Merkle tree) of transactions in a block.

    Root hash (for a Merkle tree) of transactions in a block.

    Definition Classes
    CHeaderHeader
  27. val version: Byte

    Block version, to be increased on every soft and hardfork.

    Block version, to be increased on every soft and hardfork.

    Definition Classes
    CHeaderHeader
  28. val votes: Coll[Byte]
    Definition Classes
    CHeaderHeader
  29. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  30. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  31. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()

Inherited from Serializable

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from Header

Inherited from AnyRef

Inherited from Any

Ungrouped