Skip to content

Commit

Permalink
added offsets for fixed gen
Browse files Browse the repository at this point in the history
  • Loading branch information
qwang98 committed Aug 21, 2023
1 parent 9b7304f commit 746e96c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions examples/mimc7.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ def setup(self):

def fixed_gen(self):
for i, round_key in enumerate(ROUND_KEYS):
self.assign(self.lookup_row, F(i))
self.assign(self.lookup_c, F(round_key))
self.assign(i, self.lookup_row, F(i))
self.assign(i, self.lookup_c, F(round_key))


class Mimc7Circuit(Circuit):
Expand Down

0 comments on commit 746e96c

Please sign in to comment.