-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use correct representation of hash in circuits.
Interface for computing sah256 is currently limited in circuits' code to only be able to compute the sha256 of 2 32 bytes variables after they are converted to nil::crypto3::hashes::sha2<256>::block_type.
- Loading branch information
1 parent
9fd86fb
commit 33bcd6f
Showing
4 changed files
with
78 additions
and
29 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,7 @@ | ||
add_example(compute_shuffled_index SOURCES compute_shuffled_index.cpp INPUT main.inp) | ||
add_example(weigh_justification_and_finalization SOURCES weigh_justification_and_finalization.cpp INPUT main.inp) | ||
add_example(verify_attestation_data SOURCES verify_attestation_data.cpp INPUT main.inp) | ||
|
||
add_dependencies(template compute_shuffled_index) | ||
add_dependencies(template weigh_justification_and_finalization) | ||
add_dependencies(template verify_attestation_data) |
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