aboutsummaryrefslogtreecommitdiffstats
path: root/src/transport/wire.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/wire.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/wire.rs')
-rw-r--r--src/transport/wire.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/transport/wire.rs b/src/transport/wire.rs
index 8ead9b0..97f8819 100644
--- a/src/transport/wire.rs
+++ b/src/transport/wire.rs
@@ -14,7 +14,7 @@ use super::{EncodedMessage, MessageKind, ParsedMessage};
/// The wire format's version, the first byte of every payload. Bump it with every change
/// to a message type or a codec (`golden_bytes` fails then).
-pub(crate) const VERSION: u8 = 39;
+pub(crate) const VERSION: u8 = 40;
/// What the second byte of a payload says.
fn tag(kind: MessageKind) -> u8 {
@@ -479,6 +479,7 @@ pub(crate) fn samples() -> Vec<ParsedMessage> {
writer: Some(7),
delivered: true,
sent: crate::clock::UnixMillis(8),
+ signatures: serde_bytes::ByteBuf::from(vec![9; 96]),
}),
ParsedMessage::Status(status.clone()),
ParsedMessage::StatusReply(status),