blob: f40f6087059896c93a1d6d165b362248e85eae05 (
plain)
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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
|
/*
* Copyright 2023 Google LLC.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
syntax = "proto3";
package private_join_and_compute.anonymous_counting_tokens;
import "act/act_v0/act_v0.proto";
option java_multiple_files = true;
// The parameters defining the ACT scheme.
message SchemeParameters {
oneof scheme_parameters_oneof {
SchemeParametersV0 scheme_parameters_v0 = 1;
}
}
message ServerParameters {
ServerPublicParameters public_parameters = 1;
ServerPrivateParameters private_parameters = 2;
}
// The Server's public parameters for the ACT scheme.
message ServerPublicParameters {
oneof server_public_parameters_oneof {
ServerPublicParametersV0 server_public_parameters_v0 = 1;
}
}
// The Server's private parameters for the ACT scheme.
message ServerPrivateParameters {
oneof server_private_parameters_oneof {
ServerPrivateParametersV0 server_private_parameters_v0 = 1;
}
}
message ClientParameters {
ClientPublicParameters public_parameters = 1;
ClientPrivateParameters private_parameters = 2;
}
// The Client's public parameters for the ACT scheme.
message ClientPublicParameters {
oneof client_public_parameters_oneof {
ClientPublicParametersV0 client_public_parameters_v0 = 1;
}
}
// The Client's private parameters for the ACT scheme.
message ClientPrivateParameters {
oneof client_private_parameters_oneof {
ClientPrivateParametersV0 client_private_parameters_v0 = 1;
}
}
// The Client's token request. Can correspond to a batch of tokens.
message TokensRequest {
oneof tokens_request_oneof {
TokensRequestV0 tokens_request_v0 = 1;
}
}
// Private state corresponding to the Client's token request, needed to recover
// the tokens from the server's response.
message TokensRequestPrivateState {
oneof tokens_request_private_state_oneof {
TokensRequestPrivateStateV0 tokens_request_private_state_v0 = 1;
}
}
// The Server's response to a TokensRequest. Can correspond to a batch of
// tokens.
message TokensResponse {
oneof tokens_response_oneof {
TokensResponseV0 tokens_response_v0 = 1;
}
}
// An actual token recovered from the TokenResponse.
message Token {
// Serialized BigNum corresponding to the nonce for this token.
string nonce = 1;
oneof token_oneof {
TokenV0 token_v0 = 2;
}
}
|