package consensus
Linear Supertypes
Ordering
- Alphabetic
- By Inheritance
Inherited
- consensus
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- All
Type Members
- type ConsensusAbsoluteSlotNumber = Int with Tag[Int, consensus.ConsensusAbsoluteSlotNumber.Tag]
- trait ConsensusDataProvider extends AnyRef
- class ConsensusDataStorage extends SparkzLogging with SidechainStorageInfo
- case class ConsensusEpochAndSlot(epochNumber: ConsensusEpochNumber, slotNumber: ConsensusSlotNumber) extends Comparable[ConsensusEpochAndSlot] with Product with Serializable
- type ConsensusEpochId = String with Tag[String, consensus.ConsensusEpochId.Tag]
- case class ConsensusEpochInfo(epoch: ConsensusEpochNumber, forgingStakeInfoTree: MerkleTree, forgersStake: Long) extends Product with Serializable
- type ConsensusEpochNumber = Int with Tag[Int, consensus.ConsensusEpochNumber.Tag]
- type ConsensusNonce = Array[Byte] with Tag[Array[Byte], consensus.ConsensusNonce.Tag]
- type ConsensusSlotNumber = Int with Tag[Int, consensus.ConsensusSlotNumber.Tag]
-
case class
ForgingStakeInfo(blockSignPublicKey: PublicKey25519Proposition, vrfPublicKey: VrfPublicKey, stakeAmount: Long) extends BytesSerializable with Ordered[ForgingStakeInfo] with Product with Serializable
- Annotations
- @JsonView()
- case class FullConsensusEpochInfo(stakeConsensusEpochInfo: StakeConsensusEpochInfo, nonceConsensusEpochInfo: NonceConsensusEpochInfo) extends Product with Serializable
- case class NonceConsensusEpochInfo(consensusNonce: ConsensusNonce) extends BytesSerializable with Product with Serializable
- case class StakeConsensusEpochInfo(rootHash: Array[Byte], totalStake: Long) extends BytesSerializable with Product with Serializable
- type VrfMessage = Array[Byte] with Tag[Array[Byte], consensus.VrfMessage.Tag]
Value Members
- def blockIdToEpochId(blockId: ModifierId): ConsensusEpochId
- def buildVrfMessage(slotNumber: ConsensusSlotNumber, nonce: NonceConsensusEpochInfo): VrfMessage
- def byteArrayToConsensusNonce(bytes: Array[Byte]): ConsensusNonce
- val consensusHardcodedSaltString: Array[Byte]
- val consensusNonceAllowedLengths: Seq[Int]
- val consensusPreForkLength: Int
- val forgerStakePercentPrecision: BigDecimal
- def intToConsensusAbsoluteSlotNumber(consensusSlotNumber: Int): ConsensusAbsoluteSlotNumber
- def intToConsensusEpochNumber(consensusEpochNumber: Int): ConsensusEpochNumber
- def intToConsensusSlotNumber(consensusSlotNumber: Int): ConsensusSlotNumber
- def lastBlockIdInEpochId(epochId: ConsensusEpochId): ModifierId
- val maxSecondsInSlot: Int
- val merkleTreeHashLen: Int
- val minSecondsInSlot: Int
- val sha256HashLen: Int
- val stakeConsensusDivideMathContext: MathContext
- def vrfOutputToPositiveBigInteger(vrfOutput: VrfOutput): BigInteger
- def vrfOutputToRequiredStakePercentage(vrfOutput: VrfOutput, stakePercentageFork: Boolean): BigDecimal
- def vrfProofCheckAgainstStake(vrfOutput: VrfOutput, actualStake: Long, totalStake: Long, stakePercentageFork: Boolean, activeSlotCoefficient: Double): Boolean
- object ConsensusAbsoluteSlotNumber extends TaggedType[Int]
- object ConsensusDataProvider
-
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
- object ConsensusEpochNumber extends TaggedType[Int]
- object ConsensusNonce extends TaggedType[Array[Byte]]
- object ConsensusParamsUtil
- object ConsensusSlotNumber extends TaggedType[Int]
- object ForgingStakeInfo extends Serializable
- object ForgingStakeInfoSerializer extends SparkzSerializer[ForgingStakeInfo]
- object NonceConsensusEpochInfoSerializer extends SparkzSerializer[NonceConsensusEpochInfo]
- object StakeConsensusEpochInfoSerializer extends SparkzSerializer[StakeConsensusEpochInfo]
- object VrfMessage extends TaggedType[Array[Byte]]