-
Notifications
You must be signed in to change notification settings - Fork 316
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: adjusted flavors and relation types to zk sumcheck (#7500)
Each flavor gets a constexpr flag HasZK which indicates whether it runs with ZK or non-ZK Sumcheck. avm_flavor.hpp: HasZK is false, haven't touched anything else. Added several methods to the flavor.hpp and relation_types.hpp required for ZK Sumcheck: - Any Flavor that has ZK requires that the degrees of all sub-relation univariates in SumcheckTupleOfTuplesOfUnivariates are incremented by the corresponding SUBRELATION_WITNESS_DEGREES. It is achieved with the method create_zk_sumcheck_tuple_of_tuples_of_univariates. - The method compute_max_zk_length allows to compute the size of the Sumcheck round univariates for a given Flavor. Added UltraFlavorWithZK. ECCVM, Translator, and Mega Flavors will receive their ZK versions later. Added get_all_witnesses and get_non_witnesses getters to several Flavors. Previously, there was no reasonable universal alternative to get all witness polynomials including shits and derived ones. The second getter contains all selector polynomials, public polynomials (like Lagranges), shifts of public tables etc.
- Loading branch information
1 parent
4be1833
commit b7efd07
Showing
12 changed files
with
279 additions
and
50 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
Oops, something went wrong.