From 0dc5f85627ac0d2bd87869b9a04054444f527c71 Mon Sep 17 00:00:00 2001 From: hai007 Date: Fri, 9 Jun 2023 18:20:43 -0700 Subject: [PATCH] Add proto for authenticating Nearby Presence identities. PiperOrigin-RevId: 539222890 --- presence/proto/presence_frame.proto | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/presence/proto/presence_frame.proto b/presence/proto/presence_frame.proto index ee6c2db9..987d2ae2 100644 --- a/presence/proto/presence_frame.proto +++ b/presence/proto/presence_frame.proto @@ -40,6 +40,9 @@ message V1Frame { // Sent by discoverer to notify broadcaster the UWB ranging parameters. UwbConnectionInfo uwb_connection_info = 5; + + // Used for identity authentication. + PresenceAuthenticationFrame authentication_frame = 6; } } @@ -156,3 +159,16 @@ message ControlFrame { optional ControlType type = 1; } + +message PresenceAuthenticationFrame { + // The version of this frame and protocol. + optional int32 version = 1; + + // A signature signed by the private key in the LocalCredential. + optional bytes private_key_signature = 2; + + // A hash of the credential's id. + optional bytes credential_id_hash = 3; + + // TBD. Keychain PSK hash (go/nearby-presence-identity-verification). +}