Skip to content

Commit e26dd77

Browse files
authored
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.
1 parent 55a1861 commit e26dd77

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/fuzzers/bls12381/bls12381_fuzz.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ func fuzzCrossG2Add(data []byte) int {
168168

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

174174
return 1

0 commit comments

Comments
 (0)