6 #ifndef KAGOME_BABE_LOTTERY_HPP 7 #define KAGOME_BABE_LOTTERY_HPP 83 #endif // KAGOME_BABE_LOTTERY_HPP virtual ~BabeLottery()=default
virtual void changeEpoch(const EpochDescriptor &epoch, const Randomness &randomness, const Threshold &threshold, const crypto::Sr25519Keypair &keypair)=0
virtual std::optional< crypto::VRFOutput > getSlotLeadership(primitives::BabeSlotNumber slot) const =0
virtual std::optional< primitives::AuthorityIndex > secondarySlotAuthor(primitives::BabeSlotNumber slot, primitives::AuthorityListSize authorities_count, const Randomness &randomness) const =0
virtual EpochDescriptor getEpoch() const =0
virtual crypto::VRFOutput slotVrfSignature(primitives::BabeSlotNumber slot) const =0
uint64_t AuthorityListSize
crypto::VRFThreshold Threshold
threshold, which must not be exceeded for the party to be a slot leader