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

Replace aggregate() with streaming API #452

Merged
merged 1 commit into from
Oct 9, 2024
Merged

Replace aggregate() with streaming API #452

merged 1 commit into from
Oct 9, 2024

Conversation

cjpatton
Copy link
Collaborator

@cjpatton cjpatton commented Oct 7, 2024

Closes #432.

Modify both Daf and Vdaf by replacing aggregate() with two
methods:

  • agg_init() returns an empty aggregate share
  • agg_update() updates an aggregate share with an output share

Also, add a method merge() for merging two aggregate shares, as will be required for specifying aggregation in DAP.

@cjpatton
Copy link
Collaborator Author

cjpatton commented Oct 7, 2024

Reviewer note: So far I've just modified the reference code. If folks are happy with this approach, then I'll propagate to the doc.

@cjpatton cjpatton force-pushed the cjpatton/432 branch 4 times, most recently from 616046a to c21702e Compare October 7, 2024 23:27
@cjpatton cjpatton marked this pull request as ready for review October 7, 2024 23:27
draft-irtf-cfrg-vdaf.md Outdated Show resolved Hide resolved
draft-irtf-cfrg-vdaf.md Show resolved Hide resolved
draft-irtf-cfrg-vdaf.md Show resolved Hide resolved
@cjpatton cjpatton requested a review from branlwyd October 8, 2024 18:23
@cjpatton
Copy link
Collaborator Author

cjpatton commented Oct 8, 2024

Rebased and squashed @branlwyd's feedback.

draft-irtf-cfrg-vdaf.md Outdated Show resolved Hide resolved
draft-irtf-cfrg-vdaf.md Outdated Show resolved Hide resolved
draft-irtf-cfrg-vdaf.md Outdated Show resolved Hide resolved
draft-irtf-cfrg-vdaf.md Outdated Show resolved Hide resolved
draft-irtf-cfrg-vdaf.md Outdated Show resolved Hide resolved
draft-irtf-cfrg-vdaf.md Outdated Show resolved Hide resolved
draft-irtf-cfrg-vdaf.md Outdated Show resolved Hide resolved
poc/vdaf_poc/vdaf.py Outdated Show resolved Hide resolved
Modify both `Daf` and `Vdaf` by replacing `aggregate()` with two
methods:

* `agg_init()` returns an empty aggregate share
* `agg_update()` updates an aggregate share with an output share

Also, add a method `merge()` for merging two aggregate shares, as will
be required for specifying aggregation in DAP.

Co-authored-by: Brandon Pitman <[email protected]>
@cjpatton
Copy link
Collaborator Author

cjpatton commented Oct 9, 2024

Rebased and squashed.

@cjpatton cjpatton merged commit 8bbac2e into main Oct 9, 2024
6 checks passed
@divergentdave divergentdave deleted the cjpatton/432 branch November 4, 2024 16:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Replace aggregate() with a streaming API
3 participants