diff options
| author | tv <tv@krebsco.de> | 2026-10-26 05:45:20 +0100 |
|---|---|---|
| committer | tv <tv@krebsco.de> | 2026-10-26 05:45:20 +0100 |
| commit | a87c8a21d5d6c0d07bf4b11acefb3b609eec3179 (patch) | |
| tree | dc0a32bcc07dcc694054834c9392a2d8706e32c7 /src/transport/mod.rs | |
| parent | 771665daeb95f7f136545f8768c31003a82823d6 (diff) | |
send bounded peer lists
Diffstat (limited to 'src/transport/mod.rs')
| -rw-r--r-- | src/transport/mod.rs | 4 |
1 files changed, 4 insertions, 0 deletions
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<String>; |
