Overview of the libp2p package structure
mainThe libp2p package is organized into several specialized subpackages that handle different aspects of the libp2p protocol stack. Key functional areas include:
- Core Networking:
libp2p.host,libp2p.network,libp2p.transport, andlibp2p.peer. - Security & Identity:
libp2p.crypto,libp2p.identity, andlibp2p.security. - Routing & Discovery:
libp2p.discovery,libp2p.kad_dht,libp2p.relay, andlibp2p.peer_routing(vialibp2p.peer). - Communication Patterns:
libp2p.pubsub,libp2p.request_response, andlibp2p.stream_muxer. - Data & Storage:
libp2p.bitswap,libp2p.records, andlibp2p.filecoin. - Observability:
libp2p.observability,libp2p.metrics, andlibp2p.perf.