-
Notifications
You must be signed in to change notification settings - Fork 126
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
Behaviour on a combined EVM+ewasm chain #153
Comments
In addition to being more explicit, which I believe is always good, this also opens two other interesting possibilities:
|
Other than sheer simplicity, what's the argument in favor of forbidding one code type from creating code of another code type? This could be accomplished with multiple |
The alternative is following up on #39 and and having a "bytecode version" field in front of the code in every single case, but that is still affected by problem 1) above.
See problem statement 2) up there. Introducing bunch of new opcodes to EVM sounds like a bad idea. |
Linking a related eth-magicians forum thread: https://ethereum-magicians.org/t/evm-instruction-set-versioning/2286 |
This is a discussion we've had with @karalabe and @holiman.
Having a mixed chain has a lot of challenges, some of which include:
One possible solution to this we have discussed is to introduce a "code type" field in the account. If this field is missing it is considered to be 1 (evm). Ewasm would have a type of 2.
Contracts created by contracts always retain the code type, e.g. EVM contracts create EVM contracts, ewasm contracts create ewasm contracts.
This also simplifies the rules about selecting the execution engine in a transaction.
The text was updated successfully, but these errors were encountered: