-
Notifications
You must be signed in to change notification settings - Fork 256
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
Add Wahby-Boneh hash-to-curve #343
Conversation
fix: trait not object in tests
zero for some reason.
…!(F127::new(BigInteger64([1])) == field_new!(F127, "1"));`
montgomery form. - added map_field_to_curve_swu
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.
This looks almost ready, modulo the small nits.
Co-authored-by: Pratyush Mishra <pratyushmishra@berkeley.edu>
Adapt the hash-to-curve codebase to digest v0.10
- adapt unit tests to the new definition
Co-authored-by: Marcin <marcin@web3.foundation>
- match definition of parity function to sgn0 of ietf draft in swu map
Hi all, is there anything I can do to help push this along? |
I think it requires your judgement on @mmagician comment here: |
With the latest commits I have addressed the outstanding comments. Let us know if there's anything else @Pratyush. |
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.
Do you have any test vectors comparing against the Pasta implementation of hash-to-curve? I didn't see any (but this is a large PR and I might have missed them).
Co-authored-by: Daira Hopwood <daira@jacaranda.org>
Description
This PR uses #147 PR to implement WB hash to curve to it by essentially by translating https://github.com/zcash/pasta_curves/blob/main/src/hashtocurve.rs to arkworks language
We have also implemented the relevant parameters in our fork of arkworks-curves for bls12-381 and bls12-377 and now it works with our bls library.
Before we can merge this PR, please make sure that all the following items have been
checked off. If any of the checklist items are not applicable, please leave them but
write a little note why.
Pending
section inCHANGELOG.md
Files changed
in the Github PR explorer