ab_client_proof_of_time/source/
gossip.rs1use crate::PotNextSlotInput;
4use ab_core_primitives::pot::{PotCheckpoints, PotSeed, SlotNumber};
5use parity_scale_codec::{Decode, Encode};
6use std::num::NonZeroU32;
7
8#[derive(Debug, Copy, Clone, Eq, PartialEq, Hash, Encode, Decode)]
9pub struct GossipProof {
10 pub slot: SlotNumber,
12 pub seed: PotSeed,
14 pub slot_iterations: NonZeroU32,
16 pub checkpoints: PotCheckpoints,
18}
19
20#[derive(Debug)]
21pub enum ToGossipMessage {
22 Proof(GossipProof),
23 NextSlotInput(PotNextSlotInput),
24}