Skip to content

Commit 61ff3a1

Browse files
authored
all: remove kilic dependency from bls12381 fuzzers (#30296)
The [kilic](https://github.com/kilic/bls12-381) bls12381 implementation has been archived. It shouldn't be necessary to include it as a fuzzing target any longer. This also adds fuzzers for G1/G2 mul that use inputs that are guaranteed to be valid. Previously, we just did random input fuzzing for these precompiles.
1 parent 83790b0 commit 61ff3a1

File tree

4 files changed

+209
-119
lines changed

4 files changed

+209
-119
lines changed

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,6 @@ require (
4747
github.com/jackpal/go-nat-pmp v1.0.2
4848
github.com/jedisct1/go-minisign v0.0.0-20230811132847-661be99b8267
4949
github.com/karalabe/hid v1.0.1-0.20240306101548-573246063e52
50-
github.com/kilic/bls12-381 v0.1.0
5150
github.com/kylelemons/godebug v1.1.0
5251
github.com/mattn/go-colorable v0.1.13
5352
github.com/mattn/go-isatty v0.0.20
@@ -116,6 +115,7 @@ require (
116115
github.com/hashicorp/go-retryablehttp v0.7.4 // indirect
117116
github.com/influxdata/line-protocol v0.0.0-20200327222509-2487e7298839 // indirect
118117
github.com/jmespath/go-jmespath v0.4.0 // indirect
118+
github.com/kilic/bls12-381 v0.1.0 // indirect
119119
github.com/klauspost/compress v1.16.0 // indirect
120120
github.com/klauspost/cpuid/v2 v2.0.9 // indirect
121121
github.com/kr/pretty v0.3.1 // indirect

oss-fuzz.sh

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -160,6 +160,10 @@ compile_fuzzer github.com/ethereum/go-ethereum/tests/fuzzers/bls12381 \
160160
FuzzG1Add fuzz_g1_add\
161161
$repo/tests/fuzzers/bls12381/bls12381_test.go
162162

163+
compile_fuzzer github.com/ethereum/go-ethereum/tests/fuzzers/bls12381 \
164+
FuzzCrossG1Mul fuzz_cross_g1_mul\
165+
$repo/tests/fuzzers/bls12381/bls12381_test.go
166+
163167
compile_fuzzer github.com/ethereum/go-ethereum/tests/fuzzers/bls12381 \
164168
FuzzG1Mul fuzz_g1_mul\
165169
$repo/tests/fuzzers/bls12381/bls12381_test.go
@@ -172,6 +176,10 @@ compile_fuzzer github.com/ethereum/go-ethereum/tests/fuzzers/bls12381 \
172176
FuzzG2Add fuzz_g2_add \
173177
$repo/tests/fuzzers/bls12381/bls12381_test.go
174178

179+
compile_fuzzer github.com/ethereum/go-ethereum/tests/fuzzers/bls12381 \
180+
FuzzCrossG2Mul fuzz_cross_g2_mul\
181+
$repo/tests/fuzzers/bls12381/bls12381_test.go
182+
175183
compile_fuzzer github.com/ethereum/go-ethereum/tests/fuzzers/bls12381 \
176184
FuzzG2Mul fuzz_g2_mul\
177185
$repo/tests/fuzzers/bls12381/bls12381_test.go
@@ -204,6 +212,10 @@ compile_fuzzer github.com/ethereum/go-ethereum/tests/fuzzers/bls12381 \
204212
FuzzCrossG2Add fuzz_cross_g2_add \
205213
$repo/tests/fuzzers/bls12381/bls12381_test.go
206214

215+
compile_fuzzer github.com/ethereum/go-ethereum/tests/fuzzers/bls12381 \
216+
FuzzCrossG2MultiExp fuzz_cross_g2_multiexp \
217+
$repo/tests/fuzzers/bls12381/bls12381_test.go
218+
207219
compile_fuzzer github.com/ethereum/go-ethereum/tests/fuzzers/bls12381 \
208220
FuzzCrossPairing fuzz_cross_pairing\
209221
$repo/tests/fuzzers/bls12381/bls12381_test.go

0 commit comments

Comments
 (0)