Changeset View
Changeset View
Standalone View
Standalone View
shared/protos/identity_client.proto
Show First 20 Lines • Show All 115 Lines • ▼ Show 20 Lines | enum DeviceType { | ||||
MacOS = 5; | MacOS = 5; | ||||
} | } | ||||
// Bundle of information needed for creating an initial message using X3DH | // Bundle of information needed for creating an initial message using X3DH | ||||
message DeviceKeyUpload { | message DeviceKeyUpload { | ||||
IdentityKeyInfo deviceKeyInfo = 1; | IdentityKeyInfo deviceKeyInfo = 1; | ||||
PreKey contentUpload = 2; | PreKey contentUpload = 2; | ||||
PreKey notifUpload = 3; | PreKey notifUpload = 3; | ||||
repeated string onetimeContentPrekeys = 4; | repeated string oneTimeContentPrekeys = 4; | ||||
repeated string onetimeNotifPrekeys = 5; | repeated string oneTimeNotifPrekeys = 5; | ||||
DeviceType deviceType = 6; | DeviceType deviceType = 6; | ||||
} | } | ||||
// Request for registering a new user | // Request for registering a new user | ||||
message RegistrationStartRequest { | message RegistrationStartRequest { | ||||
// Message sent to initiate PAKE registration (step 1) | // Message sent to initiate PAKE registration (step 1) | ||||
bytes opaqueRegistrationRequest = 1; | bytes opaqueRegistrationRequest = 1; | ||||
string username = 2; | string username = 2; | ||||
▲ Show 20 Lines • Show All 142 Lines • ▼ Show 20 Lines | |||||
// GetOutboundKeysForUser | // GetOutboundKeysForUser | ||||
// Information needed when establishing communication to someone else's device | // Information needed when establishing communication to someone else's device | ||||
message OutboundKeyInfo { | message OutboundKeyInfo { | ||||
IdentityKeyInfo identityInfo = 1; | IdentityKeyInfo identityInfo = 1; | ||||
PreKey contentPrekey = 2; | PreKey contentPrekey = 2; | ||||
PreKey notifPrekey = 3; | PreKey notifPrekey = 3; | ||||
optional string onetimeContentPrekey = 4; | optional string oneTimeContentPrekey = 4; | ||||
optional string onetimeNotifPrekey = 5; | optional string oneTimeNotifPrekey = 5; | ||||
} | } | ||||
// Information needed by a device to establish communcation when responding | // Information needed by a device to establish communcation when responding | ||||
// to a request. | // to a request. | ||||
// The device receiving a request only needs the content key and prekey. | // The device receiving a request only needs the content key and prekey. | ||||
message OutboundKeysForUserRequest { | message OutboundKeysForUserRequest { | ||||
oneof identifier { | oneof identifier { | ||||
string username = 1; | string username = 1; | ||||
▲ Show 20 Lines • Show All 77 Lines • Show Last 20 Lines |