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

mastic: Add test vectors, fix remaining bugs #1183

Merged
merged 1 commit into from
Jan 7, 2025
Merged

Conversation

cjpatton
Copy link
Collaborator

@cjpatton cjpatton commented Jan 4, 2025

Partially addresses #947. I plan to add more test vectors and clean up a few things.

Add test vectors for Mastic and fix the bugs they encounter:

  • Add domain separation to the payload check hash.
  • Truncate the weights prior to aggregation.
  • Adjust the order of the binder parts in the eval proof computation.
  • vidpf: Align public share encoding with the draft.
  • vidpf: Adjust index encoding in node proof.
  • vidpf: Align a few variable names with the spec.

The test vectors were generated after making some changes to the spec based on our implementation experience here:
jimouris/draft-mouris-cfrg-mastic#101

@cjpatton cjpatton marked this pull request as ready for review January 4, 2025 00:08
@cjpatton cjpatton requested a review from a team as a code owner January 4, 2025 00:08
@cjpatton cjpatton requested a review from divergentdave January 4, 2025 00:08
src/vidpf.rs Outdated Show resolved Hide resolved
Add test vectors for Mastic and fix the bugs they encounter:

* Add domain separation to the payload check hash.
* Truncate the weights prior to aggregation.
* Adjust the order of the binder parts in the eval proof computation.
* vidpf: Align public share encoding with the draft.
* vidpf: Adjust index encoding in node proof.
* vidpf: Align a few variable names with the spec.

The test vectors were generated after making some changes to the spec
based on our implementation experience here:
jimouris/draft-mouris-cfrg-mastic#101
@cjpatton cjpatton merged commit 38eb348 into main Jan 7, 2025
6 checks passed
@cjpatton cjpatton deleted the cjpatton/947-5 branch January 7, 2025 00:46
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.

2 participants