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

Unifying Hash To Curve code generation #209

Merged
merged 15 commits into from
Jun 16, 2022
Merged

Unifying Hash To Curve code generation #209

merged 15 commits into from
Jun 16, 2022

Conversation

Tabaie
Copy link
Contributor

@Tabaie Tabaie commented Jun 9, 2022

Unifying code generation for SvdW and SSWU

@Tabaie Tabaie requested a review from yelhousni June 9, 2022 21:17
@Tabaie
Copy link
Contributor Author

Tabaie commented Jun 9, 2022

I haven't added parameters for some of the other curves in there yet. Will do that after another PR simplifying SSWU code generation, removing generation-time parameter computation, after which I can delete all field arithmetic logic. Currently, if we try to develop field config classes for degree 4 extensions, we would have to implement arithmetic in towers as well which I would like to avoid.

@Tabaie Tabaie marked this pull request as ready for review June 13, 2022 14:55
Copy link
Collaborator

@yelhousni yelhousni left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGMT! we can merge this.

Also the new svdw is 9% faster for BN254 G1 (and 4% for G2).

@Tabaie
Copy link
Contributor Author

Tabaie commented Jun 16, 2022

Nice! It's probably because of how the precomputed values are loaded.

@Tabaie Tabaie merged commit 5762cbd into develop Jun 16, 2022
@Tabaie Tabaie deleted the codegen/svdw-not-e4 branch June 16, 2022 12:55
@gbotrel gbotrel mentioned this pull request Aug 3, 2022
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.

None yet

2 participants