From a5627136ce77a15f2d4400e99b356c8846f2c828 Mon Sep 17 00:00:00 2001 From: kaichaosun Date: Wed, 27 May 2026 10:22:08 +0800 Subject: [PATCH 1/2] feat: add sender id in history entry --- .../reliability/logoschat.reliability.rs | 10 +++++++++- protos/reliability.proto | 18 ++++++++++-------- 2 files changed, 19 insertions(+), 9 deletions(-) diff --git a/gen/rust/src/logoschat/reliability/logoschat.reliability.rs b/gen/rust/src/logoschat/reliability/logoschat.reliability.rs index 36f2e46..89ddddd 100644 --- a/gen/rust/src/logoschat/reliability/logoschat.reliability.rs +++ b/gen/rust/src/logoschat/reliability/logoschat.reliability.rs @@ -9,9 +9,14 @@ pub struct HistoryEntry { /// Unique identifier of the SDS message, as defined in `Message` #[prost(string, tag="1")] pub message_id: ::prost::alloc::string::String, - /// Optional information to help remote parties retrieve this SDS + /// Optional information to help remote parties retrieve this SDS #[prost(bytes="bytes", tag="2")] pub retrieval_hint: ::prost::bytes::Bytes, + /// message; For example, A Waku deterministic message hash or routing payload hash + /// + /// Original message sender's participant ID (routing hint) + #[prost(string, tag="3")] + pub sender_id: ::prost::alloc::string::String, } #[derive(Clone, PartialEq, ::prost::Message)] pub struct ReliablePayload { @@ -28,5 +33,8 @@ pub struct ReliablePayload { /// Optional field causes errors in nim protobuf generation. Removing for now as optional is implied anways. #[prost(bytes="bytes", tag="20")] pub content: ::prost::bytes::Bytes, + /// Original message sender's participant ID (routing hint) + #[prost(string, tag="7")] + pub sender_id: ::prost::alloc::string::String, } // @@protoc_insertion_point(module) diff --git a/protos/reliability.proto b/protos/reliability.proto index 6c49105..8ac77dd 100644 --- a/protos/reliability.proto +++ b/protos/reliability.proto @@ -8,16 +8,18 @@ package logoschat.reliability; message HistoryEntry { string message_id = 1; // Unique identifier of the SDS message, as defined in `Message` - bytes retrieval_hint = 2; // Optional information to help remote parties retrieve this SDS + bytes retrieval_hint = 2; // Optional information to help remote parties retrieve this SDS // message; For example, A Waku deterministic message hash or routing payload hash + string sender_id = 3; // Original message sender's participant ID (routing hint) } - + message ReliablePayload { - string message_id = 2; - string channel_id = 3; - int32 lamport_timestamp = 10; - repeated HistoryEntry causal_history = 11; - bytes bloom_filter = 12; + string message_id = 2; + string channel_id = 3; + int32 lamport_timestamp = 10; + repeated HistoryEntry causal_history = 11; + bytes bloom_filter = 12; // Optional field causes errors in nim protobuf generation. Removing for now as optional is implied anways. - bytes content = 20; + bytes content = 20; + string sender_id = 7; // Original message sender's participant ID (routing hint) } From 66771f5ec9b1675cd7c4db0f8eea6ebce63ffb63 Mon Sep 17 00:00:00 2001 From: kaichaosun Date: Wed, 27 May 2026 10:25:14 +0800 Subject: [PATCH 2/2] chore: fix comment --- gen/rust/src/logoschat/reliability/logoschat.reliability.rs | 4 +--- protos/reliability.proto | 3 +-- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/gen/rust/src/logoschat/reliability/logoschat.reliability.rs b/gen/rust/src/logoschat/reliability/logoschat.reliability.rs index 89ddddd..dc3c1e0 100644 --- a/gen/rust/src/logoschat/reliability/logoschat.reliability.rs +++ b/gen/rust/src/logoschat/reliability/logoschat.reliability.rs @@ -9,11 +9,9 @@ pub struct HistoryEntry { /// Unique identifier of the SDS message, as defined in `Message` #[prost(string, tag="1")] pub message_id: ::prost::alloc::string::String, - /// Optional information to help remote parties retrieve this SDS + /// Optional information to help remote parties retrieve this SDS message; For example, A Waku deterministic message hash or routing payload hash #[prost(bytes="bytes", tag="2")] pub retrieval_hint: ::prost::bytes::Bytes, - /// message; For example, A Waku deterministic message hash or routing payload hash - /// /// Original message sender's participant ID (routing hint) #[prost(string, tag="3")] pub sender_id: ::prost::alloc::string::String, diff --git a/protos/reliability.proto b/protos/reliability.proto index 8ac77dd..7a445ec 100644 --- a/protos/reliability.proto +++ b/protos/reliability.proto @@ -8,8 +8,7 @@ package logoschat.reliability; message HistoryEntry { string message_id = 1; // Unique identifier of the SDS message, as defined in `Message` - bytes retrieval_hint = 2; // Optional information to help remote parties retrieve this SDS - // message; For example, A Waku deterministic message hash or routing payload hash + bytes retrieval_hint = 2; // Optional information to help remote parties retrieve this SDS message; For example, A Waku deterministic message hash or routing payload hash string sender_id = 3; // Original message sender's participant ID (routing hint) }