tests/fuzzers/bls12381: fix error message in fuzzCrossG2Add (#31113)

Fixes a typo in the error message within the `fuzzCrossG2Add`
function. The panic message incorrectly references "G1 point addition
mismatch" when it should be "G2 point addition mismatch," as the
function deals with G2 points.

This doesn't affect functionality but could cause confusion during
debugging. I've updated the message to reflect the correct curve.
This commit is contained in:
kazak 2025-02-04 08:09:06 +02:00 committed by GitHub
parent 55a18616b1
commit e26dd774a9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -168,7 +168,7 @@ func fuzzCrossG2Add(data []byte) int {
bl3 := blst.P2AffinesAdd([]*blst.P2Affine{bl1, bl2}) bl3 := blst.P2AffinesAdd([]*blst.P2Affine{bl1, bl2})
if !(bytes.Equal(gp.Marshal(), bl3.Serialize())) { if !(bytes.Equal(gp.Marshal(), bl3.Serialize())) {
panic("G1 point addition mismatch blst / geth ") panic("G2 point addition mismatch blst / geth ")
} }
return 1 return 1