-
Notifications
You must be signed in to change notification settings - Fork 542
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
convert poseidon params from strings just once
- Loading branch information
1 parent
2c192f4
commit 8ee87dc
Showing
9 changed files
with
14 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,3 @@ | ||
include Make_sponge.Make (Backend.Tick.Field) | ||
|
||
let params = | ||
(* HACK *) | ||
Sponge.Params.( | ||
let testbit n i = Bigint.(equal (shift_right n i land one) one) in | ||
map pasta_p_kimchi ~f:(fun s -> | ||
Backend.Tick.Field.of_bits | ||
(List.init Backend.Tick.Field.size_in_bits | ||
(testbit (Bigint.of_string s)) ) )) | ||
let params = Kimchi_pasta_basic.poseidon_params_fp |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,3 @@ | ||
include Make_sponge.Make (Backend.Tock.Field) | ||
|
||
let params = | ||
(* HACK *) | ||
Sponge.Params.( | ||
let testbit n i = Bigint.(equal (shift_right n i land one) one) in | ||
map pasta_q_kimchi ~f:(fun s -> | ||
Backend.Tock.Field.of_bits | ||
(List.init Backend.Tock.Field.size_in_bits | ||
(testbit (Bigint.of_string s)) ) )) | ||
let params = Kimchi_pasta_basic.poseidon_params_fq |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters