-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathexposures.proto
48 lines (43 loc) · 1.29 KB
/
exposures.proto
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
syntax = "proto2";
message TemporaryExposureKeyExport {
optional fixed64 start_timestamp = 1;
optional fixed64 end_timestamp = 2;
optional string region = 3;
optional int32 batch_num = 4;
optional int32 batch_size = 5;
repeated SignatureInfo signature_infos = 6;
repeated TemporaryExposureKey keys = 7;
repeated TemporaryExposureKey revised_keys = 8;
}
message SignatureInfo {
reserved 1, 2;
reserved "app_bundle_id", "android_package";
optional string verification_key_version = 3;
optional string verification_key_id = 4;
optional string signature_algorithm = 5;
}
message TemporaryExposureKey {
optional bytes key_data = 1;
optional int32 transmission_risk_level = 2 [deprecated = true];
optional int32 rolling_start_interval_number = 3;
optional int32 rolling_period = 4 [default = 144];
enum ReportType {
UNKNOWN = 0;
CONFIRMED_TEST = 1;
CONFIRMED_CLINICAL_DIAGNOSIS = 2;
SELF_REPORT = 3;
RECURSIVE = 4;
REVOKED = 5;
}
optional ReportType report_type = 5;
optional sint32 days_since_onset_of_symptoms = 6;
}
message TEKSignatureList {
repeated TEKSignature signatures = 1;
}
message TEKSignature {
optional SignatureInfo signature_info = 1;
optional int32 batch_num = 2;
optional int32 batch_size = 3;
optional bytes signature = 4;
}