Crate kaspa_p2p_lib

source ·

Modules§

Macros§

Structs§

  • The main object to create for managing a fully-fledged Kaspa P2P peer
  • Hub of active peers (represented as Router objects). Note that all public methods of this type are exposed through the Adaptor
  • Implements the Kaspa peer-to-peer handshake protocol
  • A router object for managing the communication to a network peer. It is named a router because it’s responsible for internally routing messages to P2P flows based on registration and message types

Enums§

Constants§

Traits§

  • The main entrypoint for external usage of the P2P library. An impl of this trait is expected on P2P server initialization and will be called on each new (in/out) P2P connection with a corresponding dedicated new router