mirror of
https://github.com/logos-messaging/nim-chat-poc.git
synced 2026-01-02 14:13:10 +00:00
24 lines
958 B
Protocol Buffer
24 lines
958 B
Protocol Buffer
syntax = "proto3";
|
|
|
|
package wap.reliability;
|
|
|
|
///////////////////////////////////////////////////////////////////////////////
|
|
// 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;
|
|
}
|