Skip to content

Commit

Permalink
Fix PoC
Browse files Browse the repository at this point in the history
  • Loading branch information
schoppmp committed Apr 18, 2024
1 parent bc8b428 commit 5280b62
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion draft-irtf-cfrg-vdaf.md
Original file line number Diff line number Diff line change
Expand Up @@ -3991,7 +3991,8 @@ def is_valid(Poplar1, agg_param, previous_agg_params):

(level, prefixes) = agg_param
(last_level, last_prefixes) = previous_agg_params[-1]
last_prefixes_set = set(last_prefixes + [0]) # The empyt prefix 0 is always there.
# The empty prefix 0 is always there.
last_prefixes_set = set(list(last_prefixes) + [0])

# Check that level increased.
if level <= last_level
Expand Down
3 changes: 2 additions & 1 deletion poc/vdaf_poplar1.py
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,8 @@ def is_valid(Poplar1, agg_param, previous_agg_params):

(level, prefixes) = agg_param
(last_level, last_prefixes) = previous_agg_params[-1]
last_prefixes_set = set(last_prefixes + [0]) # The empyt prefix 0 is always there.
# The empty prefix 0 is always there.
last_prefixes_set = set(list(last_prefixes) + [0])

# Check that level increased.
if level <= last_level:
Expand Down

0 comments on commit 5280b62

Please sign in to comment.