Skip to content

Commit

Permalink
Merge pull request #188 from xmtp/insipx/validation-cred
Browse files Browse the repository at this point in the history
Flags for Key Package Validation protos
  • Loading branch information
insipx authored May 20, 2024
2 parents 99b5de6 + a7c179f commit ff0b6f8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions proto/mls/api/v1/mls.proto
Original file line number Diff line number Diff line change
Expand Up @@ -194,6 +194,7 @@ message KeyPackageUpload {
message RegisterInstallationRequest {
// The Key Package contains all information needed to register an installation
KeyPackageUpload key_package = 1;
bool is_inbox_id_credential= 2;
}

// The response to a RegisterInstallationRequest
Expand All @@ -205,6 +206,7 @@ message RegisterInstallationResponse {
message UploadKeyPackageRequest {
// An individual key package upload request
KeyPackageUpload key_package = 1;
bool is_inbox_id_credential = 2;
}

// Fetch one or more key packages
Expand Down
2 changes: 2 additions & 0 deletions proto/mls_validation/v1/service.proto
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ message ValidateInboxIdKeyPackagesResponse {
string error_message = 2;
xmtp.identity.MlsCredential credential = 3;
bytes installation_public_key = 4;
uint64 expiration = 5;
}

repeated Response responses = 1;
Expand All @@ -45,6 +46,7 @@ message ValidateKeyPackagesRequest {
// Wrapper for each key package
message KeyPackage {
bytes key_package_bytes_tls_serialized = 1;
bool is_inbox_id_credential = 2;
}

repeated KeyPackage key_packages = 1;
Expand Down

0 comments on commit ff0b6f8

Please sign in to comment.