mirror of
https://github.com/logos-messaging/logos-messaging-js.git
synced 2026-01-14 22:13:09 +00:00
* wip * feat: integrate sds-r with message channels * feat: add SDS-R events * fix: fixed buffer handling incoming and outgoing * fix: more buffer fixes * fix: remove some magic numbers * fix: buffer optimisation, backwards compatible senderId * fix: fix implementation guide, remove unrelated claude file * fix: further buffer optimisations * fix: linting errors * fix: suggestions from code review Co-authored-by: Sasha <118575614+weboko@users.noreply.github.com> Co-authored-by: fryorcraken <110212804+fryorcraken@users.noreply.github.com> * fix: remove implementation guide * fix: build errors, remove override, improve buffer * fix: consistent use of MessageId and ParticipantId * fix: switch to conditionally constructed from conditionally executed --------- Co-authored-by: fryorcraken <commits@fryorcraken.xyz> Co-authored-by: Sasha <118575614+weboko@users.noreply.github.com> Co-authored-by: fryorcraken <110212804+fryorcraken@users.noreply.github.com>
22 lines
1.3 KiB
Protocol Buffer
22 lines
1.3 KiB
Protocol Buffer
syntax = "proto3";
|
|
|
|
message HistoryEntry {
|
|
string message_id = 1; // Unique identifier of the SDS message, as defined in `Message`
|
|
optional 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
|
|
|
|
optional string sender_id = 3; // Participant ID of original message sender. Only populated if using optional SDS Repair extension
|
|
}
|
|
|
|
message SdsMessage {
|
|
string sender_id = 1; // Participant ID of the message sender
|
|
string message_id = 2; // Unique identifier of the message
|
|
string channel_id = 3; // Identifier of the channel to which the message belongs
|
|
optional uint64 lamport_timestamp = 10; // Logical timestamp for causal ordering in channel
|
|
repeated HistoryEntry causal_history = 11; // List of preceding message IDs that this message causally depends on. Generally 2 or 3 message IDs are included.
|
|
optional bytes bloom_filter = 12; // Bloom filter representing received message IDs in channel
|
|
|
|
repeated HistoryEntry repair_request = 13; // Capped list of history entries missing from sender's causal history. Only populated if using the optional SDS Repair extension.
|
|
|
|
optional bytes content = 20; // Actual content of the message
|
|
}
|