aboutsummaryrefslogtreecommitdiffstats
path: root/src/transport/mod.rs
diff options
context:
space:
mode:
authortv <tv@krebsco.de>2026-11-07 22:35:21 +0100
committertv <tv@krebsco.de>2026-11-07 22:35:21 +0100
commit2ff408c024a0ef5db2a770e8a091783f1b6d9cfc (patch)
tree5350c2290c673049af04ff1c55043087a86f3b14 /src/transport/mod.rs
parent63b34dfa41e1595145507a88901e332bf4bd3b14 (diff)
signatures: with sync messages
Sync messages carry, for each actor's writes, the latest signature the sender checked; the receiver checks it once it holds the change. Auth plan M5.
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 f5b2db1..35e1e5f 100644
--- a/src/transport/mod.rs
+++ b/src/transport/mod.rs
@@ -704,6 +704,10 @@ pub(crate) struct SyncEnvelope {
/// When the sender generated it, by its clock: the receiver takes how long it took
/// to come (`swarm::hop`).
pub(crate) sent: crate::clock::UnixMillis,
+ /// Signatures of changes (`document::signatures`): each actor's latest the sender
+ /// verified that it didn't send this peer yet, `signatures::MAX_PER_MESSAGE` at
+ /// most, as `signatures::pack` packs them.
+ pub(crate) signatures: serde_bytes::ByteBuf,
}
/// An epoch, as sync messages name it: its generation and the first bytes of its ID,