go-ethereum/crypto/bn256
Antonio Sanso f26b5653e8
crypto/bn256: add documentation on subgroup checks for G2 (#32066)
This PR improves the IsOnCurve methods for BN254 G2 points by:

* Clarifying its behavior the docstring, making it explicit that it
verifies both the point being on the curve and in the correct subgroup.

* Adding an in-line comment explaining the subgroup membership check
(c.Mul(Order)).

 * Minor wording adjustments for readability and consistency.
2025-06-20 13:18:20 +02:00
..
cloudflare crypto/bn256: add documentation on subgroup checks for G2 (#32066) 2025-06-20 13:18:20 +02:00
gnark crypto/bn256/gnark: align marshaling behavior (#32065) 2025-06-20 12:47:48 +02:00
google crypto/bn256: add documentation on subgroup checks for G2 (#32066) 2025-06-20 13:18:20 +02:00
bn256_fast.go Revert "crypto/bn256: default to gnark (#32024)" 2025-06-17 00:42:07 +02:00
bn256_slow.go all: add go:build lines (#23468) 2021-08-25 18:46:29 +02:00
LICENSE crypto/bn256: add missing license file, release wrapper in BSD-3 2018-08-20 18:05:06 +03:00