Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

State Transition Tests: General and FuzzyVM #239

Closed
yperbasis opened this issue May 5, 2021 · 1 comment · Fixed by #1067
Closed

State Transition Tests: General and FuzzyVM #239

yperbasis opened this issue May 5, 2021 · 1 comment · Fixed by #1067
Labels
enhancement New feature or improvement

Comments

@yperbasis
Copy link
Member

yperbasis commented May 5, 2021

State Transition Tests have been proposed back in 2017, and finalized in 2021. This is a powerful tool to test various scenarios of contract execution. Most importantly, the solution is meant to be compatible with all implementations of EVM.

In 2021, Marius van der Wijden proposed using the exact mechanism for fuzzy testing. This has been successfully utlized to find bugs in Geth, Nethermind and Besu clients.

@yperbasis yperbasis added the enhancement New feature or improvement label Jul 16, 2021
@JacekGlen
Copy link
Member

JacekGlen commented Mar 20, 2023

Useful links:
https://mariusvanderwijden.github.io/blog/2021/05/02/FuzzyVM/ - original post
https://github.com/dvyukov/go-fuzz - generic fuzzy generator
https://github.com/MariusVanDerWijden/FuzzyVM - EVM test generator
https://github.com/holiman/goevmlab - test executor
ethereum/EIPs#176 - General State Tests proposal
https://ethereum-tests.readthedocs.io/en/latest/test_types/gstate_tests.html - General State Tests format
https://github.com/ethereum/tests/tree/develop/GeneralStateTests - general state test library

Initial findings:
Evmone implements state test tools: https://github.com/torquem-ch/evmone/tree/master/test/statetest. We can use the same concept and 'silkwormize' it:

  • use silkworm::ExecutionProcessor
  • use silkworm::InMemoryState for state management
  • use silkworm::EvmHost for host wrapper

@JacekGlen JacekGlen changed the title Fuzz testing with FuzzyVM State Transition Tests: General and FuzzyVM Apr 5, 2023
@JacekGlen JacekGlen self-assigned this Apr 6, 2023
JacekGlen added a commit that referenced this issue Apr 25, 2023
JacekGlen added a commit that referenced this issue Apr 26, 2023
JacekGlen added a commit that referenced this issue Apr 27, 2023
JacekGlen added a commit that referenced this issue May 8, 2023
JacekGlen added a commit that referenced this issue May 8, 2023
JacekGlen added a commit that referenced this issue May 8, 2023
JacekGlen added a commit that referenced this issue May 8, 2023
JacekGlen added a commit that referenced this issue May 8, 2023
JacekGlen added a commit that referenced this issue May 8, 2023
JacekGlen added a commit that referenced this issue May 10, 2023
JacekGlen added a commit that referenced this issue May 10, 2023
JacekGlen added a commit that referenced this issue May 10, 2023
JacekGlen added a commit that referenced this issue May 10, 2023
JacekGlen added a commit that referenced this issue May 10, 2023
JacekGlen added a commit that referenced this issue May 16, 2023
JacekGlen added a commit that referenced this issue May 16, 2023
JacekGlen added a commit that referenced this issue May 16, 2023
JacekGlen added a commit that referenced this issue May 16, 2023
JacekGlen added a commit that referenced this issue May 16, 2023
JacekGlen added a commit that referenced this issue May 22, 2023
JacekGlen added a commit that referenced this issue May 22, 2023
JacekGlen added a commit that referenced this issue May 29, 2023
JacekGlen added a commit that referenced this issue May 29, 2023
@JacekGlen JacekGlen linked a pull request May 30, 2023 that will close this issue
JacekGlen added a commit that referenced this issue May 30, 2023
JacekGlen added a commit that referenced this issue May 30, 2023
@JacekGlen JacekGlen removed their assignment Aug 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or improvement
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants