Skip to content

bluealloy/revm

Folders and files

NameName
Last commit message
Last commit date

Latest commit

556f8dd · Mar 24, 2025
Mar 10, 2025
Mar 21, 2025
Aug 30, 2024
Mar 24, 2025
Mar 24, 2025
Mar 24, 2025
Mar 24, 2025
Mar 19, 2025
Sep 4, 2024
Feb 14, 2025
Mar 24, 2025
Mar 24, 2025
Mar 24, 2025
Jan 16, 2024
Feb 8, 2025
Mar 24, 2025
Mar 24, 2025
Sep 2, 2024
Mar 10, 2025
Sep 24, 2024

Repository files navigation

Revm

CI License revm Chat

Revm is a highly efficient and stable implementation of the Ethereum Virtual Machine (EVM) written in Rust.

banner

Known for its robustness, it stands as one of the most popular libraries and critical component of the Ethereum ecosystem. Revm plays a crucial role across various projects, being widely utilized by almost all tooling and block builders. It is integrated into Reth, multiple Layer 2 variants and other clients and serving as a standard for zkVMs.

Revm offers two primary applications: firstly, it functions as an executor where users can set up block info and process mainnet transactions; secondly, it acts as a framework that facilitates the extension and support of different EVM variants such as op-revm.

How to use:

Here is a straightforward example of using the Execution API: It allows us to create an Ethereum Virtual Machine (EVM) and execute transactions. Additionally, it can be utilized to generate traces with the inspector or more complex example of foundry cheatcodes.

let mut evm = Context::mainnet().with_block(block).build_mainnet();
let out = evm.transact(tx);

// or you can use powerful inspection tool to trace it
let mut evm = evm.with_inspector(tracer);
let out = evm.inspect_with_tx(tx);

The Evm Framework API is somewhat complex to use, but this document provides a detailed explanation. It enables users to extend logic, incorporate various context types, and offers built-in support for inspection. For a practical example, you can refer to the op-revm crate.

Users:

As previously noted, there are several groups of projects that utilize this technology:

The full list of projects that use Revm is available in the awesome-revm section of the book.

How to, dev section

The book and Architecture and API page is the best starting resource.

Some quicklinks can be found here. Some pointto code documentation or book. code docs are there to explain usage of particular part of the code where book is to get more of the overview on architecture or how components/projects fit toggether.

  • How to build and use revm can be found here. (code)
  • Architecture overview can be seen here. book
  • Structure of the project (list of crates and their versions) can be seen here. book
  • How to use Revm Framework can be foud in MyEvm example. book
  • Release procedure and changelogs explanation. book
  • How to use revme (Revm binary with few commands) can be found here. code
  • How to run Ethereum test can be found here: book
  • If there is more explanations please open PR request for it.

Community:

For questions please open an github issue or join public telegram group: https://t.me/+Ig4WDWOzikA3MzA0

Licence

Revm is licensed under MIT Licence.

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in these crates by you, shall be licensed as above, without any additional terms or conditions.

Security

For any security questions or findings, please reach out to me directly via email at dragan0rakita@gmail.com or contact me on Keybase under the username @draganrakita.