go-ethereum/crypto/bn256/cloudflare
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
..
bn256.go crypto/bn256: refine comments according to #19577, #21595, and #21836 (#21847) 2024-12-09 17:49:00 +08:00
bn256_test.go crypto/cloudflare/bn256: fix in-place addition and unmarshalling (#23419) 2024-01-18 21:58:12 +08:00
constants.go crypto/bn256/cloudflare: fix comments to describe the updated curve parameters (#19577) 2024-12-09 17:48:59 +08:00
curve.go crypto/cloudflare/bn256: fix in-place addition and unmarshalling (#23419) 2024-01-18 21:58:12 +08:00
example_test.go FIx Bad block error. 2021-09-17 17:59:06 +05:30
gfp.go crypto/cloudflare/bn256: fix in-place addition and unmarshalling (#23419) 2024-01-18 21:58:12 +08:00
gfp2.go core/vm, crypto/bn256: switch over to cloudflare library (#16203) 2018-03-05 14:33:45 +02:00
gfp6.go crypto/bn256/cloudflare: fix comments to describe the updated curve parameters (#19577) 2024-12-09 17:48:59 +08:00
gfp12.go crypto/bn256: fix MulScalar (#30974) 2025-01-04 11:00:57 +08:00
gfp_amd64.s crypto/bn256/cloudflare: fix asm for dynamic linking (#24476) 2024-01-18 21:59:02 +08:00
gfp_arm64.s crypto/bn256: full switchover to cloudflare's code (#16301) 2018-03-20 01:13:54 +09:00
gfp_decl.go crypto/bn256: fix staticcheck warning SA9009: ineffectual compiler directive 2024-10-30 21:10:45 +08:00
gfp_generic.go crypto: add go:build lines (#23468) 2024-12-09 17:49:00 +08:00
gfp_test.go crypto/bn256: full switchover to cloudflare's code (#16301) 2018-03-20 01:13:54 +09:00
lattice.go crypto/bn256: full switchover to cloudflare's code (#16301) 2018-03-20 01:13:54 +09:00
lattice_test.go crypto/bn256: full switchover to cloudflare's code (#16301) 2018-03-20 01:13:54 +09:00
main_test.go new EVM Upgrade 2021-09-21 16:53:46 +05:30
mul_amd64.h crypto/bn256/cloudflare: fix asm for dynamic linking (#24476) 2024-01-18 21:59:02 +08:00
mul_arm64.h crypto/bn256/cloudflare: pull in upstream fix for R27 and R29 usage #32057 (#1229) 2025-07-26 17:39:28 +08:00
mul_bmi2_amd64.h crypto/bn256/cloudflare: fix asm for dynamic linking (#24476) 2024-01-18 21:59:02 +08:00
optate.go all: fix staticcheck warning SA4006: never used value 2024-10-24 17:37:19 +08:00
twist.go crypto/bn256: add documentation on subgroup checks for G2 #32066 (#1232) 2025-07-26 17:41:09 +08:00