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

Inaccurate finalExponentiation doc comment #240

Closed
IAvecilla opened this issue Apr 12, 2024 · 0 comments · Fixed by #254
Closed

Inaccurate finalExponentiation doc comment #240

IAvecilla opened this issue Apr 12, 2024 · 0 comments · Fixed by #254
Assignees

Comments

@IAvecilla
Copy link
Contributor

Context: EcPairing.yul#L1419

Description: According to the referenced papers value returned by finalExponentiation() is not A^((p^12 -1)/r) but A^(s*((p^12 -1)/r)) where s is not divisible by r.

Recommendation: Update doc comment and add context information why it's not a problem that the result is raised to the power of s = 2u (6u^2 + 3u + 1), where u is the curve seed.

zkSync:

Spearbit:

@IAvecilla IAvecilla self-assigned this Apr 12, 2024
@IAvecilla IAvecilla linked a pull request Apr 12, 2024 that will close this issue
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 a pull request may close this issue.

1 participant