mirror of
https://github.com/kidfromjupiter/nearby.git
synced 2026-09-16 15:36:12 -04:00
Add proto for authenticating Nearby Presence identities.
PiperOrigin-RevId: 539222890
This commit is contained in:
@@ -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).
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user