Skip to content

Commit

Permalink
Fix formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
schoppmp committed Apr 19, 2024
1 parent 5280b62 commit a637131
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions poc/vdaf_poplar1.py
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ def shard(Poplar1, measurement, nonce, rand):
# and a share of the correlated randomness.
input_shares = list(zip(keys, corr_seed, corr_inner, corr_leaf))
return (public_share, input_shares)

@classmethod
def get_ancestor(Poplar1, input, this_level, last_level):
"""
Expand Down Expand Up @@ -181,8 +181,8 @@ def is_valid(Poplar1, agg_param, previous_agg_params):
for (i, prefix) in enumerate(prefixes):
last_prefix = Poplar1.get_ancestor(prefix, level, last_level)
if last_prefix not in last_prefixes_set:
return False # Current prefix not a suffix of last level's prefixes.

# Current prefix not a suffix of last level's prefixes.
return False
return True

@classmethod
Expand Down

0 comments on commit a637131

Please sign in to comment.