gmessages/libgm/binary/raw/pairing.proto

55 lines
989 B
Protocol Buffer
Raw Normal View History

2023-06-30 09:54:08 +00:00
syntax = "proto3";
package pairing;
option go_package = "../../binary";
import "messages.proto";
message BrowserDetails {
2023-06-30 13:26:46 +00:00
string userAgent = 1;
2023-06-30 09:54:08 +00:00
int32 someInt = 2;
string os = 3;
bool someBool = 6;
}
message PhoneRelayBody {
2023-06-30 13:26:46 +00:00
string ID = 1;
2023-06-30 09:54:08 +00:00
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;
2023-06-30 09:54:08 +00:00
ECDSAKeys ecdsaKeys = 6;
WebAuthKey webAuthKeyData = 2;
messages.Device browser = 3;
}
message UnpairDeviceData {
messages.Device browser = 1;
}
2023-06-30 09:54:08 +00:00
message WebAuthKey {
bytes webAuthKey = 1;
int64 validFor = 2;
}
message Container {
PhoneRelayBody PhoneRelay = 1;
BrowserDetails browserDetails = 3;
PairDeviceData pairDeviceData = 4;
UnpairDeviceData unpairDeviceData = 5;
2023-06-30 09:54:08 +00:00
}
message UrlData {
bytes pairingKey = 1;
2023-06-30 13:26:46 +00:00
bytes AESCTR256Key = 2;
bytes SHA256Key = 3;
2023-06-30 13:00:52 +00:00
}