Skip to content
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

Merged
merged 15 commits into from
Jun 17, 2024
Merged

Conversation

ple13
Copy link
Contributor

@ple13 ple13 commented Jun 10, 2024

  1. EdpSimulator to charge privacy budget for reach-only HMSS.
  2. HMSS Mill supports reach-only HMSS.

@wfa-reviewable
Copy link

This change is Reviewable

Copy link
Member

@kungfucraig kungfucraig left a 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?

Copy link
Contributor Author

@ple13 ple13 left a 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 (

return HonestMajorityShareShuffleKt.ComputationDetailsKt.parameters {
), we do not always set the reach/frequency DP params. The 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.

Copy link
Member

@kungfucraig kungfucraig left a 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: :shipit: complete! all files reviewed, all discussions resolved (waiting on @renjiezh, @SanjayVas, and @uakyol)

Copy link
Contributor

@renjiezh renjiezh left a 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: :shipit: complete! all files reviewed, all discussions resolved (waiting on @SanjayVas and @uakyol)

Copy link
Collaborator

@stevenwarejones stevenwarejones left a 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: :shipit: complete! all files reviewed, all discussions resolved (waiting on @SanjayVas and @uakyol)

Copy link
Member

@SanjayVas SanjayVas left a 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.

See https://github.com/world-federation-of-advertisers/cross-media-measurement/blob/main/docs/code-style.md#kotlin


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.

Copy link
Contributor Author

@ple13 ple13 left a 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.

See https://github.com/world-federation-of-advertisers/cross-media-measurement/blob/main/docs/code-style.md#kotlin

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.

Copy link
Member

@SanjayVas SanjayVas left a 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: :shipit: complete! all files reviewed, all discussions resolved (waiting on @uakyol)

@ple13 ple13 merged commit 2b61030 into main Jun 17, 2024
3 of 4 checks passed
@ple13 ple13 deleted the lephi-add-support-for-reach-only-hmss branch June 17, 2024 20:06
ple13 added a commit that referenced this pull request Aug 16, 2024
1. EdpSimulator to charge privacy budget for reach-only HMSS.
2. HMSS Mill supports reach-only HMSS.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants