go-ethereum/crypto/bn256
Daniel Liu 9f360824a9
crypto/bn256: add documentation on subgroup checks for G2 #32066 (#1232)
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.

Co-authored-by: Antonio Sanso <antonio.sanso@gmail.com>
2025-07-26 17:41:09 +08:00
..
cloudflare crypto/bn256: add documentation on subgroup checks for G2 #32066 (#1232) 2025-07-26 17:41:09 +08:00
gnark crypto/bn256: fix gnark deserialisation #32055 (#1227) 2025-07-26 17:35:13 +08:00
google crypto/bn256: add documentation on subgroup checks for G2 #32066 (#1232) 2025-07-26 17:41:09 +08:00
bn256_fast.go crypto: add go:build lines (#23468) 2024-12-09 17:49:00 +08:00
bn256_slow.go crypto/bn256: fix import line (#20723) 2024-12-09 17:48:59 +08:00