Skip to main content

po_node/
peer.rs

1//! Peer information and registry.
2
3use po_crypto::identity::NodeId;
4use std::net::SocketAddr;
5
6/// Information about a connected peer.
7#[derive(Debug, Clone)]
8pub struct PeerInfo {
9    /// The peer's cryptographic node ID.
10    pub node_id: NodeId,
11    /// The peer's network address.
12    pub addr: SocketAddr,
13    /// The peer's Ed25519 public key.
14    pub pubkey: [u8; 32],
15}