evm2 icon indicating copy to clipboard operation
evm2 copied to clipboard

Use case of evm2

Open fewwwww opened this issue 2 years ago • 3 comments

Super interesting project! I'm curious what will be the future use case of evm2. L3?

fewwwww avatar Sep 30 '22 21:09 fewwwww

it started as a meme project. I did find some use cases for it, but most likely not as a top-layer. if would run on the same layer it is run on (L1 if L1, L2 if L2... L3 if L3?) but it will allow for isolating as a classic VM would do on your native OS.

imagine the contract as the host and the executed evm2 code as the guest. it will have access to whatever the host provides, which could range from full transparency (pass all opcodes to evm) to full isolation (restrict opcodes as much as possible, e.g. no SSTORE, no CALL, no SLOAD maybe...)

one potential use case could be implementing a "safe" delegatecall: perhaps you want to implement an arbitrary delegatecall but want to ensure the target contract does not do dangerous things such as SELFDESTRUCT, SSTORE to replace a proxy implementation, send out ETH or whatever else.

hananbeer avatar Oct 01 '22 16:10 hananbeer

Safe delegatecall makes a lot of the sense. Thanks for the knowledge!

fewwwww avatar Oct 01 '22 18:10 fewwwww

@hananbeer you mad bro. In a good way.

belenkymr avatar Oct 02 '22 05:10 belenkymr