Skip to content

Perf: optimize BLS24-317 final exp#356

Merged
yelhousni merged 1 commit intodevelopfrom
perf/bn24317-FinalExp
Mar 14, 2023
Merged

Perf: optimize BLS24-317 final exp#356
yelhousni merged 1 commit intodevelopfrom
perf/bn24317-FinalExp

Conversation

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants