Skip to content

Commit

Permalink
Only generate test vectors for Prio3 variants with codepoints
Browse files Browse the repository at this point in the history
  • Loading branch information
cjpatton committed Nov 28, 2023
1 parent 924b635 commit e03411b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions poc/vdaf_prio3.py
Original file line number Diff line number Diff line change
Expand Up @@ -623,7 +623,7 @@ def _test_prio3sumvec(num_proofs: Unsigned, field: FftField):
[255] * 10
],
list(range(256, 266)),
print_test_vec=TEST_VECTOR,
print_test_vec=False,
)
cls = Prio3SumVec.with_params(3, 16, 7).with_shares(3)
test_vdaf(
Expand All @@ -635,7 +635,7 @@ def _test_prio3sumvec(num_proofs: Unsigned, field: FftField):
[15986, 24671, 23910]
],
[45328, 76286, 26980],
print_test_vec=TEST_VECTOR,
print_test_vec=False,
test_vec_instance=1,
)

Expand Down Expand Up @@ -743,7 +743,7 @@ def test_prio3sumvec_with_multiproof():
test_vdaf(cls, None, [[0, 1, 1, 0]], [0, 1, 1, 0])
test_vdaf(cls, None, [[0, 1, 1, 0], [0, 1, 0, 1]], [0, 2, 1, 1])
test_vdaf(
cls, None, [[0, 1, 1, 0]], [0, 1, 1, 0], print_test_vec=TEST_VECTOR
cls, None, [[0, 1, 1, 0]], [0, 1, 1, 0], print_test_vec=False
)
# Prio3MultiHotHistogram with length = 11, max_count = 5, chunk_length = 3.
cls = Prio3MultiHotHistogram.with_params(11, 5, 3).with_shares(3)
Expand All @@ -752,7 +752,7 @@ def test_prio3sumvec_with_multiproof():
None,
[[1] * 5 + [0] * 6],
[1] * 5 + [0] * 6,
print_test_vec=TEST_VECTOR,
print_test_vec=False,
test_vec_instance=1,
)

Expand Down

0 comments on commit e03411b

Please sign in to comment.