Skip to content

Commit

Permalink
mastic: Add additional test vectors (#1184)
Browse files Browse the repository at this point in the history
* MasticCount_2.json uses an aggregation parameter that is sensitive to
  the order in which the nodes are visited during the eval proof
  traversal.

* MasticCount_3.json uses an aggregation parameter that excludes the weight
  check.
  • Loading branch information
cjpatton authored Jan 7, 2025
1 parent 38eb348 commit bfbabd0
Show file tree
Hide file tree
Showing 3 changed files with 1,054 additions and 0 deletions.
18 changes: 18 additions & 0 deletions src/vdaf/mastic.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1565,6 +1565,24 @@ mod tests {
);
}

#[test]
fn count_2() {
check_test_vec(
0xFFFF0001,
|_type_params| Count::<Field64>::new(),
include_str!("test_vec/mastic/04/MasticCount_2.json"),
);
}

#[test]
fn count_3() {
check_test_vec(
0xFFFF0001,
|_type_params| Count::<Field64>::new(),
include_str!("test_vec/mastic/04/MasticCount_3.json"),
);
}

#[test]
fn sum_0() {
check_test_vec(
Expand Down
Loading

0 comments on commit bfbabd0

Please sign in to comment.