Skip to content

Commit

Permalink
tests/fuzzers/bls12381: fix error message in fuzzCrossG2Add (#31113)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
0xkazak authored and diegoximenes committed Feb 13, 2025
1 parent c92dccc commit e31b932
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/fuzzers/bls12381/bls12381_fuzz.go
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ func fuzzCrossG2Add(data []byte) int {

bl3 := blst.P2AffinesAdd([]*blst.P2Affine{bl1, bl2})
if !(bytes.Equal(gp.Marshal(), bl3.Serialize())) {
panic("G1 point addition mismatch blst / geth ")
panic("G2 point addition mismatch blst / geth ")
}

return 1
Expand Down

0 comments on commit e31b932

Please sign in to comment.