Skip to content

Commit

Permalink
Merge pull request #150 from xmtp/nm/add-idempotency-key
Browse files Browse the repository at this point in the history
Add MlsEnvelope
  • Loading branch information
neekolas authored Feb 21, 2024
2 parents 0f7f023 + db50c18 commit 5d1c8db
Showing 1 changed file with 17 additions and 1 deletion.
18 changes: 17 additions & 1 deletion proto/mls/message_contents/content.proto
Original file line number Diff line number Diff line change
Expand Up @@ -39,4 +39,20 @@ message EncodedContent {
optional Compression compression = 5;
// encoded content itself
bytes content = 4;
}
}

// A PlaintextEnvelope is the outermost payload that gets encrypted by MLS
message PlaintextEnvelope {
// Version 1 of the encrypted envelope
message V1 {
// Expected to be EncodedContent
bytes content = 1;
// A unique value that can be used to ensure that the same content can
// produce different hashes. May be the sender timestamp.
string idempotency_key = 2;
}

oneof content {
V1 v1 = 1;
}
}

0 comments on commit 5d1c8db

Please sign in to comment.