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

[docs]:Known differences between zkevm-rom and EVM #193

Open
invocamanman opened this issue Dec 7, 2022 · 0 comments
Open

[docs]:Known differences between zkevm-rom and EVM #193

invocamanman opened this issue Dec 7, 2022 · 0 comments
Labels
documentation Improvements or additions to documentation

Comments

@invocamanman
Copy link
Contributor

invocamanman commented Dec 7, 2022

Description

  • opcodes
    • SELFDESTRUCT: removed by SENDALL
    • EXTCODEHASH: returns hash contract bytecode from zkEVM state tree (do not check if the account is empty)
    • DIFFICULTY: returns 0
    • BLOCKCHASH: returns all previous block hashes (not just the last 256 blocks)
      • BLOCKCHASH is the state root at the end of a processable transaction and it is stored on the system smart contract
    • NUMBER: number of processable transactions
  • precompiled
    • supported
      • ecRecover
      • identity
    • rest of the precompiled do a revert
  • other differences
    • Do not clean the storage when a contract is deployed in that address. (not possible due to zkEVM state tree specification)
    • JUMPDEST opcode allowed in push bytes (avoid runtime bytecode analysis)
    • implements eip-3541 which belongs to London hardfork
    • eip-2718 which defines Typed Transaction Envelope are not supported
      • eip-2930 tx type, Optional access lists is not supported
  • additions
    • zk-counters: batch resources available linked to state-machines components
@invocamanman invocamanman added the documentation Improvements or additions to documentation label Dec 7, 2022
@invocamanman invocamanman changed the title [docs]:diffs-EVM [docs]:Known differences between zkevm-rom and EVM Dec 7, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

No branches or pull requests

1 participant