Package

com.ubirch.backend.chain

model

Permalink

package model

Visibility
  1. Public
  2. All

Type Members

  1. case class Anchor(anchorTo: String, hash: String, created: DateTime = DateUtil.nowUTC, version: String = MetaModel.version, block: Option[BaseBlockInfo] = None) extends Product with Serializable

    Permalink

    anchorTo

    which blockchain we anchor into

    hash

    hash of the anchor transaction

    created

    creation time

    version

    version of ubirchChainService that created the anchor

  2. sealed trait AnchoredBlock extends AnyRef

    Permalink
  3. sealed trait BaseBlock extends AnyRef

    Permalink
  4. case class BaseBlockInfo(hash: String, created: DateTime = DateUtil.nowUTC, number: Long, version: String = MetaModel.version) extends BaseBlock with Product with Serializable

    Permalink
  5. case class BlockInfo(hash: String, previousBlockHash: String, number: Long, anchors: Seq[Anchor] = Seq.empty, created: DateTime = DateUtil.nowUTC, version: String = MetaModel.version) extends BaseBlock with PreviousBlockReference with AnchoredBlock with Product with Serializable

    Permalink

    hash

    hash of the block

    previousBlockHash

    hash of the previous block

    anchors

    optional list of anchors to other chains

  6. sealed trait EventHashes extends AnyRef

    Permalink
  7. case class FullBlock(hash: String, created: DateTime, version: String, previousBlockHash: String, number: Long, hashes: Option[Seq[String]], anchors: Seq[Anchor] = Seq.empty) extends BaseBlock with PreviousBlockReference with EventHashes with AnchoredBlock with Product with Serializable

    Permalink

    hash

    hash of the block

    previousBlockHash

    hash of the previous block

    hashes

    list of hashes included in the block (only set if you requested the full block)

    anchors

    optional list of anchors to other chains

  8. case class GenesisBlock(hash: String, created: DateTime = DateUtil.nowUTC, version: String = MetaModel.version) extends BaseBlock with Product with Serializable

    Permalink

    hash

    hash value of the GenesisBlock

    created

    creation date

    version

    version of the cas class

  9. case class HashInfo(hash: String, blockHash: Option[String] = None) extends Product with Serializable

    Permalink

    hash

    hash value

    blockHash

    hash of the block it is part of (None if not mined yet)

  10. case class HashRequest(data: String, created: DateTime = DateUtil.nowUTC) extends Product with Serializable

    Permalink

    author: cvandrei since: 2016-07-28

  11. case class HashedData(hash: String, created: DateTime = DateUtil.nowUTC) extends Product with Serializable

    Permalink
  12. sealed trait PreviousBlockReference extends AnyRef

    Permalink
  13. case class UnminedHashes(hashes: Seq[String] = Seq.empty) extends Product with Serializable

    Permalink

    hashes

    list of unmined hashes

  14. case class Welcome(version: String = "1.0", status: String = "OK", message: String) extends Product with Serializable

    Permalink

    author: cvandrei since: 2016-07-27

Value Members

  1. object AnchorType

    Permalink

    author: cvandrei since: 2016-07-28

  2. object MetaModel

    Permalink

    author: cvandrei since: 2016-09-07

Ungrouped