-
Notifications
You must be signed in to change notification settings - Fork 151
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
feat: Hash to Curve chip for BLS12-381 (G2) #179
Open
nulltea
wants to merge
61
commits into
axiom-crypto:community-edition
Choose a base branch
from
nulltea:feat/bls12-381-hash2curve
base: community-edition
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
feat: Hash to Curve chip for BLS12-381 (G2) #179
nulltea
wants to merge
61
commits into
axiom-crypto:community-edition
from
nulltea:feat/bls12-381-hash2curve
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
nulltea
force-pushed
the
feat/bls12-381-hash2curve
branch
from
May 10, 2024 13:55
626c6b2
to
0350dd7
Compare
* add expand message length assert * add more length checks * update asserts
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.
Add support for hashing to curve inside circuit. Based on
draft-irtf-cfrg-hash-to-curve-16
.Relies on axiom-crypto/halo2curves#8. Should be merged after #175 and #176.
Scope
ExpandMessageChip
based on section 5.3 of draft-irtf-cfrg-hash-to-curve-16.CurveExt
with constants specific to hash to curve operations. Implemented for bls12_381::G2.EccChip
with methods required byHashToCurveChip
. Implemented forEccChip<'chip, F, Fp2Chip<'chip, F>>
(G2).HashToCurveInstructions
.This implementation allows support hashing for new curves easily. Only
HashCurveExt
andHashToCurveInstructions
traits must be additionally implemented.Benchmarks
k=19
lookup_bits=18
: