rlp, tests/fuzzers/bls12381: gofmt (#22937)

This commit is contained in:
ucwong 2021-05-25 16:14:39 +08:00 committed by GitHub
parent 93407b14a6
commit 017cf71fbd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

@ -22,5 +22,5 @@ import "reflect"
// byteArrayBytes returns a slice of the byte array v. // byteArrayBytes returns a slice of the byte array v.
func byteArrayBytes(v reflect.Value) []byte { func byteArrayBytes(v reflect.Value) []byte {
return v.Slice(0, v.Len()).Bytes() return v.Slice(0, v.Len()).Bytes()
} }

@ -159,7 +159,7 @@ func FuzzCrossG1MultiExp(data []byte) int {
gethPoints = append(gethPoints, new(bls12381.PointG1).Set(kp1)) gethPoints = append(gethPoints, new(bls12381.PointG1).Set(kp1))
gnarkPoints = append(gnarkPoints, *cp1) gnarkPoints = append(gnarkPoints, *cp1)
} }
if len(gethScalars) == 0{ if len(gethScalars) == 0 {
return 0 return 0
} }
// compute multi exponentiation // compute multi exponentiation