From 51e8c8e38c05d98487784e21f9df54cc18875b8b Mon Sep 17 00:00:00 2001 From: tv Date: Mon, 26 Oct 2026 05:45:20 +0100 Subject: send bounded peer lists --- src/transport/mod.rs | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/transport/mod.rs') diff --git a/src/transport/mod.rs b/src/transport/mod.rs index 14c5ee4..b2ce63f 100644 --- a/src/transport/mod.rs +++ b/src/transport/mod.rs @@ -323,6 +323,10 @@ pub trait Transport: Send + Sync { /// This node's identity on the transport (for Mycelium: its public key). fn local_id(&self) -> &str; + /// Whether `id` can be a node's identity on this transport (for Mycelium: a public + /// key). Identities other peers name to us (in a HELLO_REPLY) are checked with it. + fn is_peer_id(&self, id: &str) -> bool; + /// Resolves a seed (anything that leads to a node, e.g. an address) to that node's /// identity, as `local_id` gives it on that node. async fn resolve_seed(&self, seed: &str) -> Result; -- cgit v1.3.1