Skip to content

crypto/bn256: fix G2.Neg setting e.z to a.z - #35660

Closed
fumin wants to merge 1 commit into
ethereum:masterfrom
fumin:fix_pair_negative_g2
Closed

crypto/bn256: fix G2.Neg setting e.z to a.z#35660
fumin wants to merge 1 commit into
ethereum:masterfrom
fumin:fix_pair_negative_g2

Conversation

@fumin

@fumin fumin commented Sep 5, 2026

Copy link
Copy Markdown

This was found by testing against test_pairing_negative_G2 from py_ecc https://github.com/ethereum/py_ecc/blob/v8.0.0/tests/core/test_bn128_and_bls12_381.py#L296

Fixes #35661

@fumin
fumin requested review from fjl and gballet as code owners September 5, 2026 16:43
@fumin fumin changed the title Fix G2.Neg setting e.z to a.z crypto/bn256: fix G2.Neg setting e.z to a.z Sep 5, 2026
@fumin
fumin force-pushed the fix_pair_negative_g2 branch from 62829d9 to 0c2bea5 Compare September 5, 2026 19:15
@MariusVanDerWijden

Copy link
Copy Markdown
Member

Please open these PRs against the upstream repo. BN256 is a vendored in dependency that we don't want to change manually in our codebase

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 this pull request may close these issues.

crypto/bn256: G2.Neg fails the test test_pairing_negative_G2 from py_ecc

2 participants