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

Perf: optimize BLS24-317 final exp #356

Merged
merged 1 commit into from
Mar 14, 2023
Merged

Conversation

yelhousni
Copy link
Collaborator

The seed x of BLS24-317 is even. Given z ∈ Fp24, we can re-use z^2 to compute z^x (Expt) by having a function that computes z^(x/2) (ExptHalf). This saves the last cyclotomic square. Also, there are 4 Expt in a row in the hard part which we can compute using 4 ExptHalf and then do 4 Karabina cyclotomic squares (instead of Granger-Scott) with a single decompression (inverse).

@yelhousni yelhousni merged commit 5185eb8 into develop Mar 14, 2023
@yelhousni yelhousni deleted the perf/bn24317-FinalExp branch March 14, 2023 09:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants