Module gossipsub

Module gossipsub 

Source
Expand description

GossipSub - Topic-based pub/sub messaging

This module provides efficient topic-based publish/subscribe messaging using the GossipSub protocol from libp2p.

§Features

  • Topic Subscription: Subscribe to topics of interest
  • Message Publishing: Publish messages to topics
  • Mesh Formation: Automatic peer mesh formation for topic propagation
  • Message Deduplication: Seen message tracking to prevent duplicates
  • Peer Scoring: Score-based peer selection for mesh quality
  • Content Announcements: Broadcast new content availability

§Design

GossipSub maintains a mesh of peers for each topic, ensuring:

  • Low latency message delivery
  • High reliability through redundancy
  • Efficient bandwidth usage through mesh optimization
  • Resistance to spam and malicious peers through scoring

Structs§

GossipSubConfig
GossipSub configuration
GossipSubManager
GossipSub manager
GossipSubMessage
GossipSub message
GossipSubStats
GossipSub statistics
MessageId
Message identifier
PeerScore
Peer score for mesh quality
TopicId
Topic identifier
TopicSubscription
Topic subscription information

Enums§

GossipSubError
Errors that can occur in GossipSub operations