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 generateHashAndCleanUp(elements: Array[Byte]*): Array[Byte]
  9. def intToConsensusAbsoluteSlotNumber(consensusSlotNumber: Int): ConsensusAbsoluteSlotNumber
  10. def intToConsensusEpochNumber(consensusEpochNumber: Int): ConsensusEpochNumber
  11. def intToConsensusSlotNumber(consensusSlotNumber: Int): ConsensusSlotNumber
  12. def lastBlockIdInEpochId(epochId: ConsensusEpochId): ModifierId
  13. val maxSecondsInSlot: Int
  14. val merkleTreeHashLen: Int
  15. val minForgerStake: Long
  16. val minSecondsInSlot: Int
  17. val sha256HashLen: Int
  18. val stakeConsensusDivideMathContext: MathContext
  19. def vrfOutputToPositiveBigInteger(vrfOutput: VrfOutput): BigInteger
  20. def vrfOutputToRequiredStakePercentage(vrfOutput: VrfOutput, stakePercentageFork: Boolean): BigDecimal
  21. def vrfProofCheckAgainstStake(vrfOutput: VrfOutput, actualStake: Long, totalStake: Long, stakePercentageFork: Boolean, activeSlotCoefficient: Double): Boolean
  22. object ConsensusAbsoluteSlotNumber extends TaggedType[Int]
  23. object ConsensusDataProvider
  24. 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

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

Inherited from AnyRef

Inherited from Any

Ungrouped