~/talk

Differential Testing with Foundry

Talkat Solidity Summit 2023 · on Thursday, 2023-11-16· [testing, security]
links:none on file
slides:none on file

Claims that the Foundry fuzzer plus the ffi cheat code can verify identical behavior between two implementations by running the same fuzzed inputs and comparing rich execution (emits, reverts, storage). Recommends three concrete patterns: a naive single-test comparator, the cport pattern that wraps one test function for both targets (requires VM rollback workarounds), and a preferred pattern that inherits the original test suite and overrides the target factory. Key details: make fuzzing deterministic with a salt and identical dictionary, trade off excluding dictionary entries versus coverage, and a template repo with example tests is provided.

AI-written summary · about

  1. 0:00Introduction
  2. 3:13Why use differential testing
  3. 7:10Practical EVM use cases
  4. 12:34Foundry differential pattern
  5. 19:12Acknowledgements
  6. 20:19Q&A
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.