go-ethereum/crypto/bn256/google
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
..
bn256.go tests/fuzzers: added bn marshaling fuzzers (#32053) 2025-06-17 23:02:36 +02:00
bn256_test.go core/vm, crypto/bn256: switch over to cloudflare library (#16203) 2018-03-05 14:33:45 +02:00
constants.go crypto/bn256: refine comments according to #19577, #21595, and #21836 (#21847) 2020-11-17 09:51:36 +01:00
curve.go crypto/bn256: fix issues caused by Go 1.11 2018-08-16 11:02:16 +03:00
example_test.go core/vm, crypto/bn256: switch over to cloudflare library (#16203) 2018-03-05 14:33:45 +02:00
gfp2.go core/vm, crypto/bn256: switch over to cloudflare library (#16203) 2018-03-05 14:33:45 +02:00
gfp6.go core/vm, crypto/bn256: switch over to cloudflare library (#16203) 2018-03-05 14:33:45 +02:00
gfp12.go crypto/bn256: fix MulScalar (#30974) 2025-01-02 14:04:06 +01:00
main_test.go travis, appveyor, Dockerfile: upgrade to Go 1.12 2019-02-27 14:21:02 +02:00
optate.go core/vm, crypto/bn256: switch over to cloudflare library (#16203) 2018-03-05 14:33:45 +02:00
twist.go crypto/bn256: add documentation on subgroup checks for G2 (#32066) 2025-06-20 13:18:20 +02:00