Upstream Diff, for reference only. - #18
Merged
Merged
Conversation
ConstanceBeguier
force-pushed
the
zsa1
branch
from
December 18, 2023 15:33
3c14fe4 to
5f436dc
Compare
daira
reviewed
Feb 6, 2024
daira
reviewed
Feb 6, 2024
daira
reviewed
Feb 6, 2024
daira
reviewed
Feb 6, 2024
This commit contains the following modifications: - Add tests for Lookup, ECC, Merkle, and Sinsemilla to verify that the verification key and the proof have not been modified by comparing them to those saved in a file. - Introduce a `LookupRangeCheck` trait that provides common methods for a lookup range check. - Use this new trait as a generic parameter in configs, chips and tests that are using lookup. - Create a new Lookup chip which is optimized for 4, 5 and 10-bit range check and add tests for this new chip. - Add `init_from_private_point` parameter in `SinsemillaConfig`. If this parameter is set to false, the `SinsemillaChip` is the same as the current `SinsemillaChip` used in vanilla circuit. Otherwise, the `SinsemillaChip` is modified to support hash from private point. --------- Co-authored-by: YaoGalteland <yao@qed-it.com> Co-authored-by: Dmitry Demin <dmitry@qed-it.com> Co-authored-by: Constance Beguier <constance@qed-it.com>
Fix clippy warnings
- Move lookup table `load` function into `LookupRangeCheck` trait (and remove `table_range_check_tag` function which is no longer used) - Move some imports to reduce the diff with the main branch - Standardize test circuit names with `My...Circuit` convention - Reduce visibility of some functions - Update changelog file
…okup table (#43) This PR adds a comment to clarify why a duplicated-rows range check lookup table was chosen.
Co-authored-by: Daira-Emma Hopwood <daira@jacaranda.org>
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR contains the following modifications that are required for ZSA:
LookupRangeCheckconfig namedLookupRangeCheck4_5BConfigoptimized for 4, 5 and 10-bit range checksmul_signCondSwapChipSinsemillaChipto support evaluating a hash from a private pointSinsemillaChipwith functions that allow separate evaluation of the hash and blinding factor of a commitmentMy...Circuitconvention