54 lines
998 B
Protocol Buffer
54 lines
998 B
Protocol Buffer
syntax = "proto3";
|
|
package pairing;
|
|
|
|
option go_package = "../../binary";
|
|
|
|
import "messages.proto";
|
|
|
|
message BrowserDetails {
|
|
string userAgent = 1;
|
|
int32 someInt = 2;
|
|
string os = 3;
|
|
bool someBool = 6;
|
|
}
|
|
|
|
message PhoneRelayBody {
|
|
string ID = 1;
|
|
string bugle = 3;
|
|
bytes rpcKey = 6;
|
|
messages.Date date = 7;
|
|
}
|
|
|
|
message ECDSAKeys {
|
|
int64 protoVersion = 1; // idk?
|
|
bytes encryptedKeys = 2;
|
|
}
|
|
|
|
message PairDeviceData {
|
|
messages.Device mobile = 1;
|
|
ECDSAKeys ecdsaKeys = 6;
|
|
WebAuthKey webAuthKeyData = 2;
|
|
messages.Device browser = 3;
|
|
}
|
|
|
|
message UnpairDeviceData {
|
|
messages.Device browser = 1;
|
|
}
|
|
|
|
message WebAuthKey {
|
|
bytes webAuthKey = 1;
|
|
int64 validFor = 2;
|
|
}
|
|
|
|
message Container {
|
|
PhoneRelayBody PhoneRelay = 1;
|
|
BrowserDetails browserDetails = 3;
|
|
PairDeviceData pairDeviceData = 4;
|
|
UnpairDeviceData unpairDeviceData = 5;
|
|
}
|
|
|
|
message UrlData {
|
|
bytes pairingKey = 1;
|
|
bytes AESCTR256Key = 2;
|
|
bytes SHA256Key = 3;
|
|
}
|