2026-01-06 14:38:56 +08:00
syntax = "proto3" ;
2026-01-09 10:12:15 +08:00
package logoschat . reliability ;
2026-01-06 14:38:56 +08:00
///////////////////////////////////////////////////////////////////////////////
// SDS Payloads
///////////////////////////////////////////////////////////////////////////////
message HistoryEntry {
string message_id = 1 ; // Unique identifier of the SDS message, as defined in `Message`
2026-05-27 10:25:14 +08:00
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
2026-05-27 10:22:08 +08:00
string sender_id = 3 ; // Original message sender's participant ID (routing hint)
2026-01-06 14:38:56 +08:00
}
2026-05-27 10:22:08 +08:00
2026-01-06 14:38:56 +08:00
message ReliablePayload {
2026-05-27 10:22:08 +08:00
string message_id = 2 ;
string channel_id = 3 ;
int32 lamport_timestamp = 10 ;
repeated HistoryEntry causal_history = 11 ;
bytes bloom_filter = 12 ;
2026-01-06 14:38:56 +08:00
// Optional field causes errors in nim protobuf generation. Removing for now as optional is implied anways.
2026-05-27 10:22:08 +08:00
bytes content = 20 ;
string sender_id = 7 ; // Original message sender's participant ID (routing hint)
2026-01-06 14:38:56 +08:00
}