summaryrefslogtreecommitdiffstats
path: root/src/transport/mod.rs
diff options
context:
space:
mode:
authortv <tv@krebsco.de>2026-10-22 20:37:34 +0200
committertv <tv@krebsco.de>2026-10-22 20:37:34 +0200
commitd05e3b01af441ccf975152995701e9e29606bd11 (patch)
tree2bd9e04cb89098c16c20021447ae19766044b34c /src/transport/mod.rs
parent0850433577942b8e65d3dacc060f2548b93d9c17 (diff)
introduce pre-shared swarm key
Diffstat (limited to 'src/transport/mod.rs')
-rw-r--r--src/transport/mod.rs4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/transport/mod.rs b/src/transport/mod.rs
index 0afb5ee..58db611 100644
--- a/src/transport/mod.rs
+++ b/src/transport/mod.rs
@@ -43,6 +43,8 @@ impl ParsedMessage {
#[derive(Debug, Clone)]
pub struct HelloRequest {
pub epoch: Epoch,
+ /// Proof of the swarm key (`swarm::auth`); empty without one.
+ pub auth: Vec<u8>,
}
#[derive(Debug, Clone)]
@@ -50,6 +52,8 @@ pub struct HelloReply {
pub swarm_id: String,
pub peers: Vec<String>,
pub epoch: Epoch,
+ /// Proof of the swarm key (`swarm::auth`); empty without one.
+ pub auth: Vec<u8>,
}
#[derive(Debug, Clone)]