Skip to content

Commit

Permalink
Merge pull request #1 from zkp-gravity/update-p
Browse files Browse the repository at this point in the history
Update p
  • Loading branch information
vicsn authored Apr 1, 2023
2 parents 8c84130 + 2e83679 commit 476d320
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/generate_aleo_code.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ def main(xs):
bloom_filter_value_bits=hash_functions_per_bloom_filter*discriminators

assert n_hash_bits == 21
p = 2 ** n_hash_bits - 1
p = 2 ** n_hash_bits - 9

hash_values = [(x * x * x) % p for x in xs]
quotients = [(x * x * x) // p for x in xs]
Expand Down

0 comments on commit 476d320

Please sign in to comment.