-
Notifications
You must be signed in to change notification settings - Fork 3
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
clarify what the malformed WASM test is testing #87
Comments
In EVMC (Aleth), this is driven by the VM as opposed to the client. Whatever VM is selected by the user is invoked for every single input. An EVMC execution may come back with A concrete example in Aleth:
The test suite is currently implicitly assumed to be ran without |
Simple change we could do in EVMC is to along the name and version to return a set of features (similarly to OpenCL, CPU features, etc). Here it could be |
@gballet can we close this issue/ |
It's been clarified and geth+wagon now models the behavior of geth+evmc/hera |
In order to find the proper interpreter, the go-ethereum client tells wagon to load the WASM contract; if it succeeds then the file is assumed to be an eWASM file, otherwise it is assumed to be an EVM contract. The "malformed ewasm" test assumes that wagon should accept a malformed ewasm as long as the header signature is present.
The way I see it, EVMC/hera should not load the file either and consider it to be an EVM file. Please clarify what the criteria are to select an interpreter based on a binary blob (just having the
\0asm
signature? Ability to fully load the file?) @axicThe text was updated successfully, but these errors were encountered: