Skip to content

Commit

Permalink
mastic: Add test vectors, fix remaining bugs (#1183)
Browse files Browse the repository at this point in the history
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
  • Loading branch information
cjpatton authored Jan 7, 2025
1 parent 38b4072 commit 38eb348
Show file tree
Hide file tree
Showing 10 changed files with 1,493 additions and 112 deletions.
2 changes: 1 addition & 1 deletion src/flp/szk.rs
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ impl<F: FieldElement + Decode, const SEED_SIZE: usize> ParameterizedDecode<(bool
}

/// A tuple containing the state and messages produced by an SZK query.
#[derive(Clone, Debug)]
#[derive(Clone, Debug, PartialEq)]
pub struct SzkQueryShare<F: FieldElement, const SEED_SIZE: usize> {
joint_rand_part_opt: Option<Seed<SEED_SIZE>>,
pub(crate) flp_verifier: Vec<F>,
Expand Down
Loading

0 comments on commit 38eb348

Please sign in to comment.