forked from zcash/halo2
-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
OrchardZSA backward compatability using traits #31
Merged
ConstanceBeguier
merged 123 commits into
zsa1
from
improve-backward-compatability-with-zsa
Aug 8, 2024
Merged
OrchardZSA backward compatability using traits #31
ConstanceBeguier
merged 123 commits into
zsa1
from
improve-backward-compatability-with-zsa
Aug 8, 2024
Conversation
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 reverts commit 23a2951.
…senting the circuit) is as expected
Sinsemilla45BChip <- SinsemillaChipOptimized Sinsemilla45BInstructions <- SinsemillaInstructionsOptimized Merkle45BChip <- MerkleChipOptimized
Previously, the SinsemillaChip always loaded the lookup range check without tag column and Sinsemilla45BChip always loaded the lookup range check with tag column. Now, we load lookup range check with or without tag according to the lookup type (LookupRangeCheckConfig or LookupRangeCheck45BConfig).
It is now possible to use Sinsemilla/Merkle45BChip with non optimized lookup.
SinsemillaWithPrivateInitChip <- Sinsemilla45BChip SinsemillaWithPrivateInitInstructions <- Sinsemilla45BInstructions MerkleWithPrivateInitChip <- Merkle45BChip
…oint variable We add enable_hash_from_private_point into SinsemillaChip in order to put together SinsemillaChip and SinsemillaWithPrivateInitChip. If enable_hash_from_private_point is set, it is possible to hash from a private point. Otherwise, it is not allowed. That allows also to put together MerkleChip and MerkleWithPrivateInitChip.
PaulLaux
reviewed
Aug 1, 2024
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good overall, added some minor comments. In addition:
- naming for
4_5b
and4_5B
and4-5b
should be consistent (including file names). - some concern about the diif size for
halo2_gadgets/src/utilities/lookup_range_check.rs
PaulLaux
approved these changes
Aug 7, 2024
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Very nice
can you clarify this: #31 (comment) |
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:
LookupRangeCheck
trait that provides common methods for a lookup range check.init_from_private_point
parameter inSinsemillaConfig
. If this parameter is set to false, theSinsemillaChip
is the same as the currentSinsemillaChip
used in vanilla circuit. Otherwise, theSinsemillaChip
is modified to support hash from private point.