Skip to content

Commit fe5c1e1

Browse files
jwasingerdiegoximenes
authored andcommitted
all: remove kilic dependency from bls12381 fuzzers (ethereum#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 9030240 commit fe5c1e1

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
@@ -48,7 +48,6 @@ require (
4848
github.com/jedisct1/go-minisign v0.0.0-20230811132847-661be99b8267
4949
github.com/julienschmidt/httprouter v1.3.0
5050
github.com/karalabe/hid v1.0.1-0.20240306101548-573246063e52
51-
github.com/kilic/bls12-381 v0.1.0
5251
github.com/kylelemons/godebug v1.1.0
5352
github.com/mattn/go-colorable v0.1.13
5453
github.com/mattn/go-isatty v0.0.20
@@ -120,6 +119,7 @@ require (
120119
github.com/hashicorp/go-retryablehttp v0.7.4 // indirect
121120
github.com/influxdata/line-protocol v0.0.0-20200327222509-2487e7298839 // indirect
122121
github.com/jmespath/go-jmespath v0.4.0 // indirect
122+
github.com/kilic/bls12-381 v0.1.0 // indirect
123123
github.com/klauspost/compress v1.16.0 // indirect
124124
github.com/klauspost/cpuid/v2 v2.0.9 // indirect
125125
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)