Skip to content

Commit 3c63909

Browse files
jwasingerzfy0701
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 3748d22 commit 3c63909

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)