-
Notifications
You must be signed in to change notification settings - Fork 11
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add support for reach only HMSS. #1655
Conversation
ple13
commented
Jun 10, 2024
- EdpSimulator to charge privacy budget for reach-only HMSS.
- HMSS Mill supports reach-only HMSS.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewed 2 of 6 files at r1, 9 of 9 files at r2, all commit messages.
Reviewable status: all files reviewed, 3 unresolved discussions (waiting on @ple13, @renjiezh, @SanjayVas, and @uakyol)
src/main/kotlin/org/wfanet/measurement/duchy/daemon/mill/shareshuffle/HonestMajorityShareShuffleMill.kt
line 394 at r2 (raw file):
CompleteShufflePhaseRequest.NonAggregatorOrder.SECOND } if (hmss.parameters.hasReachDpParams()) {
Why add the "has" checks?
src/main/kotlin/org/wfanet/measurement/duchy/daemon/mill/shareshuffle/HonestMajorityShareShuffleMill.kt
line 477 at r2 (raw file):
} } if (hmss.parameters.hasReachDpParams()) {
Same as above.
src/test/kotlin/org/wfanet/measurement/duchy/daemon/mill/shareshuffle/HonestMajorityShareShuffleMillTest.kt
line 1113 at r2 (raw file):
val requisitionBlobContext3 = RequisitionBlobContext(GLOBAL_ID, REACH_ONLY_REQUISITION_3.externalKey.externalRequisitionId) // TODO(@renjiez): Use ShareShuffleSketch from any-sketch-java when it is available..
Use FrequencyVector?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewable status: 10 of 11 files reviewed, 3 unresolved discussions (waiting on @kungfucraig, @renjiezh, @SanjayVas, and @uakyol)
src/main/kotlin/org/wfanet/measurement/duchy/daemon/mill/shareshuffle/HonestMajorityShareShuffleMill.kt
line 394 at r2 (raw file):
Previously, kungfucraig (Craig Wright) wrote…
Why add the "has" checks?
In Herald (
Line 167 in 77d12ac
return HonestMajorityShareShuffleKt.ComputationDetailsKt.parameters { |
has
checks are to make sure that we will only set the fields if they exist.
src/main/kotlin/org/wfanet/measurement/duchy/daemon/mill/shareshuffle/HonestMajorityShareShuffleMill.kt
line 477 at r2 (raw file):
Previously, kungfucraig (Craig Wright) wrote…
Same as above.
Done.
src/test/kotlin/org/wfanet/measurement/duchy/daemon/mill/shareshuffle/HonestMajorityShareShuffleMillTest.kt
line 1113 at r2 (raw file):
Previously, kungfucraig (Craig Wright) wrote…
Use FrequencyVector?
Done.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewed 1 of 1 files at r3, all commit messages.
Reviewable status: complete! all files reviewed, all discussions resolved (waiting on @renjiezh, @SanjayVas, and @uakyol)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewed 2 of 6 files at r1, 8 of 9 files at r2, 1 of 1 files at r3, all commit messages.
Reviewable status: complete! all files reviewed, all discussions resolved (waiting on @SanjayVas and @uakyol)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewed 2 of 6 files at r1, 8 of 9 files at r2, 1 of 1 files at r3, all commit messages.
Reviewable status: complete! all files reviewed, all discussions resolved (waiting on @SanjayVas and @uakyol)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewed 2 of 6 files at r1, 8 of 9 files at r2, 1 of 1 files at r3, all commit messages.
Reviewable status: all files reviewed, 2 unresolved discussions (waiting on @ple13 and @uakyol)
src/main/kotlin/org/wfanet/measurement/duchy/daemon/mill/shareshuffle/HonestMajorityShareShuffleMill.kt
line 437 at r3 (raw file):
val measurementSpec = MeasurementSpec.parseFrom(token.computationDetails.kingdomComputation.measurementSpec) val result =
nit: explicit types when not obvious. I can't tell from looking at this without an IDE what the type is.
src/main/kotlin/org/wfanet/measurement/duchy/daemon/mill/shareshuffle/HonestMajorityShareShuffleMill.kt
line 461 at r3 (raw file):
private suspend fun aggregationPhase(token: ComputationToken): ComputationToken { val measurementSpec =
It's not safe to parse this before the API version check. It's the API version that tells you what version of the MeasurementSpec message/class to use.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewable status: 10 of 11 files reviewed, 1 unresolved discussion (waiting on @kungfucraig, @renjiezh, @SanjayVas, @stevenwarejones, and @uakyol)
src/main/kotlin/org/wfanet/measurement/duchy/daemon/mill/shareshuffle/HonestMajorityShareShuffleMill.kt
line 437 at r3 (raw file):
Previously, SanjayVas (Sanjay Vasandani) wrote…
nit: explicit types when not obvious. I can't tell from looking at this without an IDE what the type is.
Done.
src/main/kotlin/org/wfanet/measurement/duchy/daemon/mill/shareshuffle/HonestMajorityShareShuffleMill.kt
line 461 at r3 (raw file):
Previously, SanjayVas (Sanjay Vasandani) wrote…
It's not safe to parse this before the API version check. It's the API version that tells you what version of the MeasurementSpec message/class to use.
Done.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewed 1 of 1 files at r4, all commit messages.
Reviewable status: complete! all files reviewed, all discussions resolved (waiting on @uakyol)
1. EdpSimulator to charge privacy budget for reach-only HMSS. 2. HMSS Mill supports reach-only HMSS.