From 848ef00cc06916f867a5b9d0e628a7ff462110b1 Mon Sep 17 00:00:00 2001 From: Anthony Rueda Date: Thu, 14 Mar 2024 15:22:45 -0700 Subject: [PATCH] [Presence] Change new unused `signature_version` field to string type for easier debugging and to align with [nearby_resources.proto](https://source.corp.google.com/piper///depot/google3/google/internal/location/nearby/presence/v1/nearby_resources.proto;l=96) PiperOrigin-RevId: 615921095 --- internal/proto/credential.proto | 4 ++-- internal/proto/local_credential.proto | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/internal/proto/credential.proto b/internal/proto/credential.proto index e58c0624..b47bfcbb 100644 --- a/internal/proto/credential.proto +++ b/internal/proto/credential.proto @@ -43,7 +43,7 @@ enum CredentialType { // The shared credential is derived from local credential, and distributed to // remote devices based on the trust token for identity decryption and // authentication. -// NEXT_ID=17 +// NEXT_ID=18 // LINT.IfChange(SharedCredential) message SharedCredential { // The randomly generated unique id of the public credential. @@ -104,6 +104,6 @@ message SharedCredential { // Signature algorithm version. Used to determine which algorithm to use to // verify incoming signatures. - bytes signature_version = 16; + string signature_version = 16; } // LINT.ThenChange(//depot/google3/google/internal/location/nearby/presence/v1/nearby_resources.proto:SharedCredential) diff --git a/internal/proto/local_credential.proto b/internal/proto/local_credential.proto index 6f340cbc..b1dc79e2 100644 --- a/internal/proto/local_credential.proto +++ b/internal/proto/local_credential.proto @@ -28,7 +28,7 @@ option optimize_for = LITE_RUNTIME; // The local credential contains information of a local device for // identity encryption and authentication. It should never leave the generating // device. -// NEXT_ID=11 +// NEXT_ID=13 message LocalCredential { // Private signing key descriptor. // For Ed25519PrivateKey, both `certificate_alias` and `encrypted_key` is set. @@ -81,5 +81,5 @@ message LocalCredential { // Signature algorithm version. Used to determine which algorithm to use to // sign data. - bytes signature_version = 12; + string signature_version = 12; }