Package

scorex

block

Permalink

package block

Visibility
  1. Public
  2. All

Type Members

  1. trait Block extends ScorexLogging

    Permalink

    A block is an atomic piece of data network participates are agreed on.

    A block is an atomic piece of data network participates are agreed on.

    A block has: - transactions data: a sequence of transactions, where a transaction is an atomic state update. Some metadata is possible as well(transactions Merkle tree root, state Merkle tree root etc).

    - consensus data to check whether block was generated by a right party in a right way. E.g. "baseTarget" & "generatorSignature" fields in the Nxt block structure, nonce & difficulty in the Bitcoin block structure.

    - a signature(s) of a block generator(s)

    - additional data: block structure version no, timestamp etc

  2. abstract class BlockField[T] extends BytesSerializable with JsonSerializable

    Permalink

    An abstraction of a part of a block, wrapping some data.

    An abstraction of a part of a block, wrapping some data. The wrapper interface provides binary & json serializations.

    T

    - type of a value wrapped into a blockfield

  3. case class BlockIdField(name: String, value: BlockId) extends BlockField[BlockId] with Product with Serializable

    Permalink
  4. trait BlockProcessingModule[BlockPartDataType] extends Deser[BlockField[BlockPartDataType]]

    Permalink

    A generic interface with functionality to convert data into a part of a block and vice versa

  5. case class ByteBlockField(name: String, value: Byte) extends BlockField[Byte] with Product with Serializable

    Permalink
  6. case class IntBlockField(name: String, value: Int) extends BlockField[Int] with Product with Serializable

    Permalink
  7. case class LongBlockField(name: String, value: Long) extends BlockField[Long] with Product with Serializable

    Permalink
  8. case class SignerData(generator: PublicKeyAccount, signature: Array[Byte]) extends Product with Serializable

    Permalink
  9. case class SignerDataBlockField(name: String, value: SignerData) extends BlockField[SignerData] with Product with Serializable

    Permalink
  10. case class TransactionBlockField(name: String, value: Transaction) extends BlockField[Transaction] with Product with Serializable

    Permalink

Value Members

  1. object Block extends ScorexLogging

    Permalink

Ungrouped