Skip to content

Commit

Permalink
Merge branch 'main' into cv/metadata-policy
Browse files Browse the repository at this point in the history
  • Loading branch information
cameronvoell committed Apr 19, 2024
2 parents c9f2dfe + 89e9d31 commit 64b0d1e
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions proto/message_contents/invitation.proto
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,9 @@ message InvitationV1 {
// Specify the encryption method to process the key material properly.
Aes256gcmHkdfsha256 aes256_gcm_hkdf_sha256 = 3;
}

// The user's consent proof
ConsentProofPayload consent_proof = 4;
}

// Sealed Invitation V1 Header
Expand Down Expand Up @@ -70,3 +73,20 @@ message SealedInvitation {
SealedInvitationV1 v1 = 1;
}
}

// Version of consent proof payload
enum ConsentProofPayloadVersion {
CONSENT_PROOF_PAYLOAD_VERSION_UNSPECIFIED = 0;
CONSENT_PROOF_PAYLOAD_VERSION_1 = 1;
}

// Payload for user's consent proof to be set in the invitation
// Signifying the conversation should be preapproved for the user on receipt
message ConsentProofPayload {
// the user's signature in hex format
string signature = 1;
// approximate time when the user signed
uint64 timestamp = 2;
// version of the payload
ConsentProofPayloadVersion payload_version = 3;
}

0 comments on commit 64b0d1e

Please sign in to comment.