Skip to content

Fix G2.Neg not setting e.z to a.z - #55

Merged
bwesterb merged 1 commit into
cloudflare:masterfrom
fumin:fix_pair_negative_g2
Sep 9, 2026
Merged

bwesterb merged 1 commit into
cloudflare:masterfrom
fumin:fix_pair_negative_g2

Conversation

@fumin

@fumin fumin commented Sep 7, 2026

Copy link
Copy Markdown
Contributor

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 #54 .

@fumin

fumin commented Sep 9, 2026

Copy link
Copy Markdown
Contributor Author

@armfazh I wonder if you take a look at this bug fix? Thanks.

@armfazh

armfazh commented Sep 9, 2026

Copy link
Copy Markdown
Contributor

The change looks ok, @bwesterb pls take a look.

@bwesterb
bwesterb self-requested a review September 9, 2026 22:06
@bwesterb
bwesterb merged commit 22942e3 into cloudflare:master Sep 9, 2026
7 checks passed
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.

G2.Neg fails the test test_pairing_negative_G2 from py_ecc

3 participants