Skip to content

Commit

Permalink
Add ShuffleBasedSecretSharing into protocol config
Browse files Browse the repository at this point in the history
  • Loading branch information
renjiezh committed Nov 20, 2023
1 parent ee51241 commit 9623fe4
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions src/main/proto/wfa/measurement/api/v2alpha/protocol_config.proto
Original file line number Diff line number Diff line change
Expand Up @@ -201,6 +201,19 @@ message ProtocolConfig {
NoiseMechanism noise_mechanism = 4;
}

// Configuration for the Shuffle Based Secret Sharing Protocol.
message ShuffleBasedSecretSharing {
// Parameters for secret sharing sketches.
SecretSharingSketchParams sketch_params = 1
[(google.api.field_behavior) = REQUIRED];
// The maximum frequency to reveal in the histogram. This is also the EDP
// frequency cap.
int32 maximum_frequency = 2;
// The mechanism to generate noise by workers during the computation.
NoiseMechanism noise_mechanism = 3;

}

// Configuration for a specific protocol.
message Protocol {
// Configuration for the specific protocol.
Expand All @@ -224,6 +237,11 @@ message ProtocolConfig {
// using this protocol can be fulfilled by calling
// RequisitionFulfillment/FulfillRequisition with an encrypted sketch.
ReachOnlyLiquidLegionsV2 reach_only_liquid_legions_v2 = 3;

// Shuffle Based Secret Sharing protocol.
//
// Using honest-majority setting.
ShuffleBasedSecretSharing shuffle_based_secret_sharing = 4;
}
}

Expand Down Expand Up @@ -264,3 +282,11 @@ message ReachOnlyLiquidLegionsSketchParams {
// The maximum size of the Liquid Legions sketch.
int64 max_size = 2 [(google.api.field_behavior) = REQUIRED];
}

message SecretSharingSketchParams {
// The size of the sketch.
int64 sketch_size = 1;
// Length of each item in bits. #_EDPs * max_frequency should be no more than
// 2^bit_per_item.
int32 bit_per_item = 2;
}

0 comments on commit 9623fe4

Please sign in to comment.