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

Constant-time š”¾ā‚œ exponentiation with endomorphism acceleration #431

Merged
merged 3 commits into from
Jul 15, 2024

Conversation

mratsim
Copy link
Owner

@mratsim mratsim commented Jul 15, 2024

This is a follow-up to #429, and also adds š”¾ā‚œ multiplication and exponentiation to zkalc (#425).

Surprisingly the slowdown for constant-time š”¾ā‚œ exponentiation is only ~10% on BLS12-381 (138Āµs vs 153Āµs)
image

This is about 3x slower than G1 vartime and 2.5x than G1 constant-time
image

And 1.5x / 1.2x slower than G2 vartime/constant-time
image

@mratsim mratsim added the constant time ā³ Enhancement is suitable for secret data label Jul 15, 2024
@mratsim mratsim merged commit cbce226 into master Jul 15, 2024
24 checks passed
@mratsim mratsim deleted the gt-exp-ct branch July 15, 2024 21:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
constant time ā³ Enhancement is suitable for secret data
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant