go-ethereum/crypto
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
..
blake2b crypto: fix some typos in comments and names (#31023) 2025-03-19 18:02:46 +08:00
bn256 crypto/bn256: add documentation on subgroup checks for G2 #32066 (#1232) 2025-07-26 17:41:09 +08:00
ecies crypto: fix some typos in comments and names (#31023) 2025-03-19 18:02:46 +08:00
secp256k1 crypto/secp256k1: update libsecp256k1 (#31242) 2025-03-19 18:02:46 +08:00
crypto.go crypto: add comment to FromECDSAPub (#31241) 2025-03-19 18:02:46 +08:00
crypto_test.go core/txpool, crypto, node: fix os.CreateTemp in test (#31172) 2025-03-19 18:02:46 +08:00
signature_cgo.go crypto: use pure Go signature implementation in tinygo #31878 (#1226) 2025-07-26 17:33:55 +08:00
signature_nocgo.go crypto: use pure Go signature implementation in tinygo #31878 (#1226) 2025-07-26 17:33:55 +08:00
signature_test.go crypto: fix docstrings and comments 2025-01-04 11:00:57 +08:00