Skip to content

Unifying Hash To Curve code generation#209

Merged
Tabaie merged 15 commits intodevelopfrom
codegen/svdw-not-e4
Jun 16, 2022
Merged

Unifying Hash To Curve code generation#209
Tabaie merged 15 commits intodevelopfrom
codegen/svdw-not-e4

Conversation

@Tabaie
Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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.

2 participants