6 #ifndef KAGOME_BABE_LOTTERY_IMPL_HPP 7 #define KAGOME_BABE_LOTTERY_IMPL_HPP 19 class BabeConfigRepository;
27 std::shared_ptr<crypto::VRFProvider> vrf_provider,
28 std::shared_ptr<consensus::babe::BabeConfigRepository> babe_config_repo,
29 std::shared_ptr<crypto::Hasher> hasher);
38 std::optional<crypto::VRFOutput> getSlotLeadership(
44 std::optional<primitives::AuthorityIndex> secondarySlotAuthor(
62 #endif // KAGOME_BABE_LOTTERY_IMPL_HPP std::shared_ptr< crypto::Hasher > hasher_
std::shared_ptr< soralog::Logger > Logger
uint64_t AuthorityListSize
crypto::Sr25519Keypair keypair_
std::shared_ptr< crypto::VRFProvider > vrf_provider_
crypto::VRFThreshold Threshold
threshold, which must not be exceeded for the party to be a slot leader