Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions changelogs/unreleased/1314-schaeff
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Restrict mimc and poseidon to bn128
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