Packages

p

io.horizen

consensus

package consensus

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. consensus
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Type Members

  1. type ConsensusAbsoluteSlotNumber = Int with Tag[Int, consensus.ConsensusAbsoluteSlotNumber.Tag]
  2. trait ConsensusDataProvider extends AnyRef
  3. class ConsensusDataStorage extends SparkzLogging with SidechainStorageInfo
  4. case class ConsensusEpochAndSlot(epochNumber: ConsensusEpochNumber, slotNumber: ConsensusSlotNumber) extends Comparable[ConsensusEpochAndSlot] with Product with Serializable
  5. type ConsensusEpochId = String with Tag[String, consensus.ConsensusEpochId.Tag]
  6. case class ConsensusEpochInfo(epoch: ConsensusEpochNumber, forgingStakeInfoTree: MerkleTree, forgersStake: Long) extends Product with Serializable
  7. type ConsensusEpochNumber = Int with Tag[Int, consensus.ConsensusEpochNumber.Tag]
  8. type ConsensusNonce = Array[Byte] with Tag[Array[Byte], consensus.ConsensusNonce.Tag]
  9. type ConsensusSlotNumber = Int with Tag[Int, consensus.ConsensusSlotNumber.Tag]
  10. case class ForgingStakeInfo(blockSignPublicKey: PublicKey25519Proposition, vrfPublicKey: VrfPublicKey, stakeAmount: Long) extends BytesSerializable with Ordered[ForgingStakeInfo] with Product with Serializable
    Annotations
    @JsonView()
  11. case class FullConsensusEpochInfo(stakeConsensusEpochInfo: StakeConsensusEpochInfo, nonceConsensusEpochInfo: NonceConsensusEpochInfo) extends Product with Serializable
  12. case class NonceConsensusEpochInfo(consensusNonce: ConsensusNonce) extends BytesSerializable with Product with Serializable
  13. case class StakeConsensusEpochInfo(rootHash: Array[Byte], totalStake: Long) extends BytesSerializable with Product with Serializable
  14. type VrfMessage = Array[Byte] with Tag[Array[Byte], consensus.VrfMessage.Tag]

Value Members

  1. def blockIdToEpochId(blockId: ModifierId): ConsensusEpochId
  2. def buildVrfMessage(slotNumber: ConsensusSlotNumber, nonce: NonceConsensusEpochInfo): VrfMessage
  3. def byteArrayToConsensusNonce(bytes: Array[Byte]): ConsensusNonce
  4. val consensusHardcodedSaltString: Array[Byte]
  5. val consensusNonceAllowedLengths: Seq[Int]
  6. val consensusPreForkLength: Int
  7. val forgerStakePercentPrecision: BigDecimal
  8. def intToConsensusAbsoluteSlotNumber(consensusSlotNumber: Int): ConsensusAbsoluteSlotNumber
  9. def intToConsensusEpochNumber(consensusEpochNumber: Int): ConsensusEpochNumber
  10. def intToConsensusSlotNumber(consensusSlotNumber: Int): ConsensusSlotNumber
  11. def lastBlockIdInEpochId(epochId: ConsensusEpochId): ModifierId
  12. val maxSecondsInSlot: Int
  13. val merkleTreeHashLen: Int
  14. val minSecondsInSlot: Int
  15. val sha256HashLen: Int
  16. val stakeConsensusDivideMathContext: MathContext
  17. def vrfOutputToPositiveBigInteger(vrfOutput: VrfOutput): BigInteger
  18. def vrfOutputToRequiredStakePercentage(vrfOutput: VrfOutput, stakePercentageFork: Boolean): BigDecimal
  19. def vrfProofCheckAgainstStake(vrfOutput: VrfOutput, actualStake: Long, totalStake: Long, stakePercentageFork: Boolean, activeSlotCoefficient: Double): Boolean
  20. object ConsensusAbsoluteSlotNumber extends TaggedType[Int]
  21. object ConsensusDataProvider
  22. object ConsensusEpochId extends TaggedType[String]

    Consensus epoch id is defined by last block in consensus epoch.

    Consensus epoch id is defined by last block in consensus epoch. For example for chain A -> B -> C -> D -> E -> (end of consensus epoch), consensus epoch id is E. It is possible to for that chain have consensus epoch with id D, in case if block E wasn't received but consensus epoch shall be finished due time passing. In that case two different consensus epochs E and D are exist

  23. object ConsensusEpochNumber extends TaggedType[Int]
  24. object ConsensusNonce extends TaggedType[Array[Byte]]
  25. object ConsensusParamsUtil
  26. object ConsensusSlotNumber extends TaggedType[Int]
  27. object ForgingStakeInfo extends Serializable
  28. object ForgingStakeInfoSerializer extends SparkzSerializer[ForgingStakeInfo]
  29. object NonceConsensusEpochInfoSerializer extends SparkzSerializer[NonceConsensusEpochInfo]
  30. object StakeConsensusEpochInfoSerializer extends SparkzSerializer[StakeConsensusEpochInfo]
  31. object VrfMessage extends TaggedType[Array[Byte]]

Inherited from AnyRef

Inherited from Any

Ungrouped