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

Fix pairing tests for null accumulated values #579

Merged
merged 1 commit into from
Sep 2, 2024
Merged

Conversation

Nashtare
Copy link
Collaborator

@Nashtare Nashtare commented Sep 1, 2024

The issue arising in some randomized samples of the pairing test was that the accumulated scalar was ending to be 0.

As we normalize the accumulated pairing computation by multiplying the running product by pairing(-acc.P, Q), this was yielding invalid results for bn254, as the infinity point is not a valid curve point and hence the pairing operation wasn't actually defined for -acc.P.

The issue only affected the updated test, the KERNEL implementation is sound as checking input validity, and is being tested expecially against these cases with test_ecpairing_precompile_invalid_input.

closes #554

@Nashtare Nashtare added this to the x Misc. milestone Sep 1, 2024
@Nashtare Nashtare requested a review from hratoanina September 1, 2024 17:35
@Nashtare Nashtare self-assigned this Sep 1, 2024
@github-actions github-actions bot added the crate: evm_arithmetization Anything related to the evm_arithmetization crate. label Sep 1, 2024
@Nashtare Nashtare merged commit e1f03df into develop Sep 2, 2024
15 checks passed
@Nashtare Nashtare deleted the fix/pairing_test branch September 2, 2024 20:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
crate: evm_arithmetization Anything related to the evm_arithmetization crate.
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

Issue with the pairing computations
2 participants