chat_proto/proto/wap/reliability.proto

24 lines
958 B
Protocol Buffer
Raw Normal View History

2025-07-03 14:04:13 -07:00
syntax = "proto3";
2025-07-11 13:49:33 -07:00
package wap.reliability;
2025-07-03 14:04:13 -07:00
///////////////////////////////////////////////////////////////////////////////
// SDS Payloads
///////////////////////////////////////////////////////////////////////////////
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
}
message ReliablePayload {
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;
}