aboutsummaryrefslogtreecommitdiff
path: root/act/act.proto
diff options
context:
space:
mode:
authorPrabal Singh <prabalsingh@google.com>2023-11-13 18:07:22 +0000
committerPrabal Singh <prabalsingh@google.com>2023-11-13 20:36:25 +0000
commit26b2c690fcfc019b5a7ae55fec2d1fd117809c52 (patch)
tree22502fb41773fc4aa5a688f7d38da93e3391359b /act/act.proto
parentac7650269463beb0cfb4c26ebf79344f210d5da4 (diff)
parent3dea51443eaabde75c00cd325bc31e3b848a767f (diff)
downloadanonymous-counting-tokens-26b2c690fcfc019b5a7ae55fec2d1fd117809c52.tar.gz
Merge remote-tracking branch 'origin/upstream-main'
Change-Id: I180a85b5132d9a086533ca7824c6bf92173b195c
Diffstat (limited to 'act/act.proto')
-rw-r--r--act/act.proto102
1 files changed, 102 insertions, 0 deletions
diff --git a/act/act.proto b/act/act.proto
new file mode 100644
index 0000000..1c39823
--- /dev/null
+++ b/act/act.proto
@@ -0,0 +1,102 @@
+/*
+ * 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 {
+ reserved 1;
+
+ oneof token_oneof {
+ TokenV0 token_v0 = 2;
+ }
+
+ // Serialized BigNum corresponding to the nonce for this token.
+ bytes nonce_bytes = 3;
+}