sigil-network · topic
Source declarations, signatures and documentation for topic.
Source: sigil/node/sigil-network/src/topic.rs. SHA-256: 627bd4b7635aaf1b69487be3b07ce08acf1465c4957325fdc68980e7288420a0.
This reference follows declared source modules, retains conditional attributes, and includes public declarations and implementation methods. Private-module re-exports and trait resolution require the compiler; this is a source reference, not a claim that every listed item is a root import. Function bodies and constant values are omitted.
topic::GossipTopic
Gossipsub topics for the Sigil network.
#[derive(Debug, Clone, Copy, PartialEq, Eq, Hash, Serialize, Deserialize)]
pub enum GossipTopic {
/// New finalized blocks.
Blocks,
/// Pre-vote messages from the consensus layer.
PreVotes,
/// Pre-commit messages from the consensus layer.
PreCommits,
/// New unconfirmed transactions (mempool).
Transactions,
/// Compute receipt announcements (requires `compute` feature).
ComputeReceipts,
/// Tower coordination chain block announcements.
TowerBlocks,
/// Tower Committee vote messages.
TowerCommitteeVotes,
/// Tower slashing evidence submissions.
TowerSlashingEvidence,
/// Tower Casper FFG finality votes.
TowerFinalityVotes,
/// Tower Casper FFG attestations from execution-chain validators.
///
/// Distinct from [`TowerFinalityVotes`] (Tower chain governance votes):
/// these are signed attestations broadcast by execution-chain validators
/// at each epoch boundary. The Tower runtime uses them to compute
/// justification and finalization via the Casper FFG rules.
TowerAttestations,
/// CZAC cross-zone channel operation messages.
CzacMessages,
}Source line: 11.
topic::GossipTopic::as_str
The canonical topic string used on the wire.
pub fn as_str(&self) -> &'static str;Source line: 43.
topic::GossipTopic::from_topic_str
Parse a topic string back into a [GossipTopic].
Returns None if the string does not match any known topic.
pub fn from_topic_str(s: &str) -> Option<Self>;Source line: 62.
topic::GossipTopic::all
All defined gossipsub topics.
pub fn all() -> Vec<Self>;Source line: 80.
topic::GossipTopic::validator_topics
Topics that every execution-chain validator must subscribe to.
pub fn validator_topics() -> Vec<Self>;Source line: 97.
topic::GossipTopic::tower_topics
Topics for Tower coordination chain validators.
pub fn tower_topics() -> Vec<Self>;Source line: 108.
topic::GossipTopic::light_topics
The minimal topic set for light/observer nodes.
pub fn light_topics() -> Vec<Self>;Source line: 119.