Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions willow/proto/willow/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,21 @@ cc_proto_library(
deps = [":committee_selector_proto"],
)

proto_library(
name = "reputable_decryptor_proto",
srcs = ["reputable_decryptor.proto"],
deps = [
":messages_proto",

"//willow/proto/shell:shell_ciphertexts_proto",
],
)

cc_proto_library(
name = "reputable_decryptor_cc_proto",
deps = [":reputable_decryptor_proto"],
)

proto_library(
name = "aggregation_config_proto",
srcs = ["aggregation_config.proto"],
Expand Down
90 changes: 90 additions & 0 deletions willow/proto/willow/reputable_decryptor.proto
Original file line number Diff line number Diff line change
@@ -0,0 +1,90 @@
// Copyright 2026 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
//
// http://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.

edition = "2023";

package secure_aggregation.willow;
import "willow/proto/shell/ciphertexts.proto";
import "willow/proto/willow/messages.proto";

option java_multiple_files = true;
option java_outer_classname = "ReputableDecryptorProto";

// Request message for creating a setup contribution.
message CreateSetupContributionRequest {}

// Response message containing the SetupContribution.
message CreateSetupContributionResponse {
SetupContribution setup_contribution = 1;
}

// Request message for creating a public key share.
message CreatePublicKeyShareRequest {}

// Response message containing the KeyContribution.
message CreatePublicKeyShareResponse {
ShellAhePublicKeyShare public_key_share = 1;
}

// Request message to handle a partial decryption request.
message HandlePartialDecryptionRequestRequest {
PartialDecryptionRequest partial_decryption_request = 1;
}

// Response message containing the partial decryption response.
message HandlePartialDecryptionRequestResponse {
PartialDecryptionResponse partial_decryption_response = 1;
}

// Request message to verify and aggregate key contributions.
message VerifyAndAggregateKeyContributionsRequest {
VerifyKeyContributionsRequest verify_key_contributions_request = 1;
}

// Response message containing the aggregated public key.
message VerifyAndAggregateKeyContributionsResponse {
ShellAhePublicKey public_key = 1;
}

// Error status.
message ReputableDecryptorStatus {
int32 code = 1;
string message = 2;
}

// ReputableDecryptorRequest combines individual request messages and is used
// by the replicated/wrapped implementation of the ReputableDecryptor.
message ReputableDecryptorRequest {
oneof msg {
CreateSetupContributionRequest create_setup_contribution = 1;
CreatePublicKeyShareRequest create_public_key_share = 2;
HandlePartialDecryptionRequestRequest handle_partial_decryption_request = 3;
VerifyAndAggregateKeyContributionsRequest
verify_and_aggregate_key_contributions = 4;
}
}

// ReputableDecryptorResponse combines individual response messages and is used
// by the replicated/wrapped implementation of the ReputableDecryptor.
message ReputableDecryptorResponse {
oneof msg {
CreateSetupContributionResponse create_setup_contribution = 1;
CreatePublicKeyShareResponse create_public_key_share = 2;
HandlePartialDecryptionRequestResponse handle_partial_decryption_request =
3;
VerifyAndAggregateKeyContributionsResponse
verify_and_aggregate_key_contributions = 4;
ReputableDecryptorStatus error = 5;
}
}