Skip to content

Commit

Permalink
fix: python circuit_sk script
Browse files Browse the repository at this point in the history
  • Loading branch information
enricobottazzi committed May 2, 2024
1 parent 4a06ab4 commit be73f5e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion scripts/circuit_sk.py
Original file line number Diff line number Diff line change
Expand Up @@ -271,7 +271,6 @@ def main(args):
# This corresponds to `add`
phase_1_eval_at_gamma_constraint_advice_cell_count += 4


for i in range(len(ctis)):
# sanity check. The coefficients of ct0i should be in the range [-(qi-1)/2, (qi-1)/2]
bound = int((qis[i] - 1) / 2)
Expand Down Expand Up @@ -354,6 +353,9 @@ def main(args):
ai_gamma_assigned = ais_assigned[i].evaluate(gamma)
ct0i_gamma_assigned = ct0is_assigned[i].evaluate(gamma)

phase_1_eval_at_gamma_constraint_advice_cell_count += len(ais_assigned[i].coefficients) * 2 - 1
phase_1_eval_at_gamma_constraint_advice_cell_count += len(ct0is_assigned[i].coefficients) * 2 - 1

'''
CIRCUIT - PHASE 1 - CORRECT ENCRYPTION CONSTRAINT
'''
Expand Down
2 changes: 1 addition & 1 deletion src/data/sk_enc_4096_2x55_65537.json

Large diffs are not rendered by default.

0 comments on commit be73f5e

Please sign in to comment.