Skip to content

Commit

Permalink
Merge pull request #1317 from Zokrates/dark64-patch-3
Browse files Browse the repository at this point in the history
Fix constant in mimc7
  • Loading branch information
Schaeff authored May 30, 2023
2 parents 32f0f43 + 862400e commit 4307184
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions changelogs/unreleased/1317-dark64
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Fix invalid constant in mimc7
4 changes: 2 additions & 2 deletions zokrates_stdlib/stdlib/hashes/mimc7/mimc7.zok
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ const field[91] C = [
4212716923652881254737947578600828255798948993302968210248673545442808456151,
7594017890037021425366623750593200398174488805473151513558919864633711506220,
18979889247746272055963929241596362599320706910852082477600815822482192194401,
1360213922981323134938688511315690179366171918090039581890971975815045550053
13602139229813231349386885113156901793661719180900395818909719758150455500533
];

def main<R>(field x_in, field k) -> field {
Expand All @@ -109,4 +109,4 @@ def main<R>(field x_in, field k) -> field {
}

return t6[R - 1] * t + k;
}
}

0 comments on commit 4307184

Please sign in to comment.