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

Add REVM-based EVM module #2001

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft

Add REVM-based EVM module #2001

wants to merge 1 commit into from

Conversation

abukosek
Copy link
Contributor

@abukosek abukosek commented Sep 25, 2024

Current status:

  • Basic EVM functionality works and e2e tests pass
  • Precompiles implemented:
    • Ethereum standard (ecrecover, sha256, ripemd160, identity, bn128::{add,mul,pair}, blake2, modexp)
    • Oasis-specific SHA2 (sha512_256, sha512, sha384)
    • Oasis-specific confidential (x25519_derive, deoxysii_seal, deoxysii_open, keypair_generate, sign, verify, curve25519_compute_public)

Precompiles to do (sorted easy to hard):

  • Oasis-specific confidential: random_bytes (problem: need to pass storage backend to precompile)
  • Oasis-specific confidential: gas_used, pad_gas (problem: revm doesn't export gas used so far to precompiles)
  • Oasis-specific general: subcall (problem: how to do this with revm?)

Other things to do:

  • Fix nonce updating
  • Port testing framework for precompiles from old EVM module
  • Test everything

The plan is to get this PR into a mergeable state by fixing nonce updates and then implement the rest via smaller PRs.

Copy link

netlify bot commented Sep 25, 2024

Deploy Preview for oasisprotocol-oasis-sdk canceled.

Name Link
🔨 Latest commit c1d2ca0
🔍 Latest deploy log https://app.netlify.com/sites/oasisprotocol-oasis-sdk/deploys/67b5f3923795da0008dbbc1d

@abukosek abukosek force-pushed the andrej/feature/revm branch 2 times, most recently from 1597d9d to efff25b Compare October 3, 2024 14:56
@abukosek abukosek force-pushed the andrej/feature/revm branch from efff25b to df1c5c7 Compare October 29, 2024 13:20
@abukosek abukosek force-pushed the andrej/feature/revm branch 6 times, most recently from 019461f to 08e89ac Compare January 14, 2025 10:41
@abukosek abukosek force-pushed the andrej/feature/revm branch 6 times, most recently from d4dad2c to 0c5d69f Compare January 23, 2025 13:52
@abukosek abukosek force-pushed the andrej/feature/revm branch 6 times, most recently from fcccbf5 to 06d5f88 Compare February 11, 2025 15:21
@abukosek abukosek force-pushed the andrej/feature/revm branch from 06d5f88 to c1d2ca0 Compare February 19, 2025 15:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant