Skip to content
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

GLV scalar multiplication #70

Open
wants to merge 11 commits into
base: master
Choose a base branch
from

Conversation

davidnevadoc
Copy link
Contributor

@davidnevadoc davidnevadoc commented Apr 27, 2023

Using the cubic endomorphism in the emulated curves we can reduce the number of constraints for single multiplications:

Window size Mul GLV mul
2 73 K 59 K
3 70 K 54 K
4 74 K 56 K

This improvement may not carry over to batched multiplications, as the benefits of both come from amortizing doublings.

This PR needs the original endomorphism PR to be merged first: privacy-scaling-explorations/halo2curves#24

davidnevadoc and others added 9 commits March 21, 2023 16:46
* sync ff group 0.13.0

* remove PrimeField bound when there is FromUniformBytes

* Update posidon dependency

---------

Co-authored-by: zhenfei <[email protected]>
Adds improved scalar mul algorithm using the curve cubic endomorphism
@kilic kilic self-requested a review April 28, 2023 10:40
@CPerezz CPerezz self-requested a review May 2, 2023 07:52
@davidnevadoc davidnevadoc marked this pull request as ready for review May 31, 2023 07:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant