Skip to content

Commit

Permalink
restrict mimc and poseidon to bn128
Browse files Browse the repository at this point in the history
  • Loading branch information
Schaeff committed May 23, 2023
1 parent 1c3187b commit 6bd1e99
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 0 deletions.
2 changes: 2 additions & 0 deletions zokrates_stdlib/stdlib/hashes/mimc7/mimc7.zok
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#pragma curve bn128;

const field[91] C = [
0,
20888961410941983456478427210666206549300505294776164667214940546594746570981,
Expand Down
1 change: 1 addition & 0 deletions zokrates_stdlib/stdlib/hashes/mimcSponge/mimcFeistel.zok
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#pragma curve bn128;
// MiMCFeistel configured with 220 rounds

const u32 R = 220;
Expand Down
2 changes: 2 additions & 0 deletions zokrates_stdlib/stdlib/hashes/poseidon/constants.zok
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#pragma curve bn128;

const field[6][497] POSEIDON_C = [
[
4417881134626180770308697923359573201005643519861877412381846989312604493735,
Expand Down

0 comments on commit 6bd1e99

Please sign in to comment.