Skip to content

Commit a5abbe9

Browse files
authored
Merge pull request #4 from EIPs-CodeLab/feat/fuzz-harnesses
feat: add fuzz harnesses for bids and envelopes
2 parents e18fee5 + 13920b7 commit a5abbe9

7 files changed

Lines changed: 1486 additions & 6 deletions

File tree

.gitignore

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,9 @@
11
/target
2+
fuzz/target
3+
fuzz/artifacts
4+
fuzz/corpus
5+
fuzz/crashes
6+
fuzz/coverage
27
.TODO
38

49
.env

README.md

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,15 @@ make lint # cargo clippy --all-targets --all-features -D warnings
120120

121121
### Fuzz (requires nightly + cargo-fuzz)
122122
```bash
123-
make fuzz # runs fuzz_bid and fuzz_envelope
123+
make fuzz # runs fuzz_bid and fuzz_envelope (~30s each)
124+
make fuzz-bid # bid harness only (~30s)
125+
make fuzz-envelope # envelope harness only (~30s)
126+
```
127+
Fuzz setup:
128+
```bash
129+
rustup toolchain install nightly
130+
cargo install cargo-fuzz
131+
cd fuzz && cargo +nightly fuzz run fuzz_bid
124132
```
125133

126134
### Examples & CLI

0 commit comments

Comments
 (0)