Skip to content

Commit

Permalink
Merge pull request #129 from xmtp/rygine/sender-hmac
Browse files Browse the repository at this point in the history
Add `sender_mac` to MessageV2
  • Loading branch information
rygine authored Jan 12, 2024
2 parents ad333e6 + 3152e77 commit b0b8b9b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions proto/keystore_api/v1/keystore.proto
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,7 @@ message EncryptResponse {
// Wrapper object for success response
message Success {
xmtp.message_contents.Ciphertext encrypted = 1;
bytes sender_hmac = 2;
}

oneof response {
Expand Down
2 changes: 2 additions & 0 deletions proto/message_contents/message.proto
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,8 @@ message MessageV2 {
bytes header_bytes = 1; // encapsulates encoded MessageHeaderV2
// Ciphertext.payload MUST contain encrypted SignedContent
Ciphertext ciphertext = 2;
// HMAC of the message ciphertext, with the HMAC key derived from the topic key
bytes sender_hmac = 3;
}

// Versioned Message
Expand Down

0 comments on commit b0b8b9b

Please sign in to comment.