Skip to content

Commit 58b5607

Browse files
authored
feat: commit log secret (#284)
1 parent a2b24d5 commit 58b5607

File tree

3 files changed

+11
-4
lines changed

3 files changed

+11
-4
lines changed

proto/mls/api/v1/mls.proto

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ package xmtp.mls.api.v1;
44

55
import "google/api/annotations.proto";
66
import "google/protobuf/empty.proto";
7+
import "identity/associations/signature.proto";
78
import "message_contents/signature.proto";
89
import "mls/message_contents/commit_log.proto";
910
import "mls/message_contents/wrapper_encryption.proto";
@@ -367,7 +368,8 @@ message BatchPublishCommitLogRequest {
367368

368369
message PublishCommitLogRequest {
369370
bytes group_id = 1;
370-
bytes encrypted_commit_log_entry = 2;
371+
bytes serialized_commit_log_entry = 2;
372+
xmtp.identity.associations.RecoverableEd25519Signature signature = 3;
371373
}
372374

373375
message QueryCommitLogRequest {

proto/mls/message_contents/commit_log.proto

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ syntax = "proto3";
44

55
package xmtp.mls.message_contents;
66

7+
import "identity/associations/signature.proto";
8+
79
enum CommitResult {
810
COMMIT_RESULT_UNSPECIFIED = 0;
911
COMMIT_RESULT_APPLIED = 1;
@@ -31,5 +33,6 @@ message PlaintextCommitLogEntry {
3133

3234
message CommitLogEntry {
3335
uint64 sequence_id = 1;
34-
bytes encrypted_commit_log_entry = 2;
36+
bytes serialized_commit_log_entry = 2;
37+
xmtp.identity.associations.RecoverableEd25519Signature signature = 3;
3538
}

proto/mls/message_contents/group_mutable_metadata.proto

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,17 @@ package xmtp.mls.message_contents;
66
option go_package = "github.com/xmtp/proto/v3/go/mls/message_contents";
77
option java_package = "org.xmtp.proto.mls.message.contents";
88

9-
109
// Message for group mutable metadata
1110
message GroupMutableMetadataV1 {
1211
// Map to store various metadata attributes (Group name, etc.)
13-
map<string, string> attributes = 1;
12+
map<string, string> attributes = 1;
1413
Inboxes admin_list = 2;
1514
// Creator starts as only super_admin
1615
// Only super_admin can add/remove other super_admin
1716
Inboxes super_admin_list = 3;
17+
// The ED25519 private key used to sign commit log entries
18+
// Must match the first entry in the commit log to be valid
19+
optional bytes commit_log_signer = 4;
1820
}
1921

2022
// Wrapper around a list of repeated Inbox Ids

0 commit comments

Comments
 (0)