From a568ab96b3b567f1640fcb6ee5499e56b3fa3334 Mon Sep 17 00:00:00 2001 From: Dakota Brink Date: Fri, 18 Oct 2024 12:34:16 -0400 Subject: [PATCH] rename message history request -> device sync request --- proto/mls/message_contents/content.proto | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/proto/mls/message_contents/content.proto b/proto/mls/message_contents/content.proto index c074b03..59a1d88 100644 --- a/proto/mls/message_contents/content.proto +++ b/proto/mls/message_contents/content.proto @@ -61,10 +61,10 @@ message PlaintextEnvelope { oneof message_type { // Expected to be EncodedContent bytes content = 2; - // Initiator sends a request to receive message history - MessageHistoryRequest request = 3; - // Some other authorized installation sends a reply - MessageHistoryReply reply = 4; + // Initiator sends a request to receive sync payload + DeviceSyncRequest request = 3; + // Some other authorized installation sends a reply with a link to payload + DeviceSyncReply reply = 4; } } @@ -76,26 +76,26 @@ message PlaintextEnvelope { } } -// Initiator or new installation id requesting a history will send a request -message MessageHistoryRequest { +// Initiator or new installation id requesting a sync payload send a request +message DeviceSyncRequest { // Unique identifier for each request string request_id = 1; // Ensures a human is in the loop string pin_code = 2; } -// Pre-existing installation id capable of supplying a history sends this reply -message MessageHistoryReply { +// Pre-existing installation id capable of supplying a sync payload sends this reply +message DeviceSyncReply { // Must match an existing request_id from a message history request string request_id = 1; // Where the messages can be retrieved from string url = 2; // Generated input 'secret' for the AES Key used to encrypt the message-bundle - MessageHistoryKeyType encryption_key = 3; + DeviceSyncKeyType encryption_key = 3; } // Key used to encrypt the message-bundle -message MessageHistoryKeyType { +message DeviceSyncKeyType { oneof key { bytes chacha20_poly1305 = 1; }