{"id":20433877,"url":"https://github.com/flashbots/revm","last_synced_at":"2025-04-11T22:51:23.326Z","repository":{"id":218995596,"uuid":"745579283","full_name":"flashbots/revm","owner":"flashbots","description":"Revm suited for suave needs","archived":false,"fork":false,"pushed_at":"2024-07-24T14:16:38.000Z","size":6860,"stargazers_count":2,"open_issues_count":6,"forks_count":2,"subscribers_count":9,"default_branch":"extensible-precompiles","last_synced_at":"2025-04-11T20:48:03.137Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/flashbots.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-01-19T16:36:24.000Z","updated_at":"2025-02-04T07:40:59.000Z","dependencies_parsed_at":"2024-07-24T16:42:44.436Z","dependency_job_id":null,"html_url":"https://github.com/flashbots/revm","commit_stats":null,"previous_names":["flashbots/revm"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/flashbots%2Frevm","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/flashbots%2Frevm/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/flashbots%2Frevm/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/flashbots%2Frevm/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/flashbots","download_url":"https://codeload.github.com/flashbots/revm/tar.gz/refs/heads/extensible-precompiles","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248492986,"owners_count":21113161,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-15T08:22:08.600Z","updated_at":"2025-04-11T22:51:23.306Z","avatar_url":"https://github.com/flashbots.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# revm\n\n[![CI](https://github.com/bluealloy/revm/actions/workflows/ci.yml/badge.svg)][gh-ci]\n[![License](https://img.shields.io/badge/License-MIT-orange.svg)][mit-license]\n[![Chat][tg-badge]][tg-url]\n\n[mit-license]: https://opensource.org/license/mit/\n[gh-ci]: https://github.com/bluealloy/revm/actions/workflows/ci.yml\n[tg-url]: https://t.me/+Ig4WDWOzikA3MzA0\n[tg-badge]: https://img.shields.io/badge/chat-telegram-blue\n\n**Rust Ethereum Virtual Machine**\n\n![](./assets/revm-banner.png)\n\nRevm is an EVM written in Rust that is focused on **speed** and **simplicity**.\nIt has a fast and flexible implementation with a simple interface and embedded Host.\nIt passes all `ethereum/tests` test suites.\n\nHere is a list of guiding principles that Revm follows.\n\n* **EVM compatibility and stability** - this goes without saying but it is nice to put it here. In the blockchain industry, stability is the most desired attribute of any system.\n* **Speed** - is one of the most important things and most decisions are made to complement this.\n* **Simplicity** - simplification of internals so that it can be easily understood and extended, and interface that can be easily used or integrated into other projects.\n* **interfacing** - `[no_std]` so that it can be used as wasm lib and integrate with JavaScript and cpp binding if needed.\n\n# Project\n\nStructure:\n\n* crates\n  * revm -\u003e main EVM library.\n  * revm-primitives -\u003e Primitive data types.\n  * revm-interpreter -\u003e Execution loop with instructions\n  * revm-precompile -\u003e EVM precompiles\n* bins:\n  * revme: cli binary, used for running state test jsons\n\nThis project tends to use the newest rust version, so if you're encountering a build error try running `rustup update` first.\n\nThere were some big efforts on optimization of revm:\n\n* Optimizing interpreter loop: https://github.com/bluealloy/revm/issues/7\n* Introducing Bytecode format (and better bytecode analysis): https://github.com/bluealloy/revm/issues/121\n* Unification of instruction signatures: https://github.com/bluealloy/revm/pull/283\n\n# Building from source\n\n```shell\ngit clone https://github.com/bluealloy/revm.git\ncd revm\ncargo build --release\n```\n\n**_Note:_** `clang` is required for building revm with `c-kzg` or `secp256k1` feature flags as they depend on `C` libraries. If you don't have it installed, you can install it with `apt install clang`.\n\n# Running eth tests\n\ngo to `cd bins/revme/`\n\nDownload eth tests from (this will take some time): `git clone https://github.com/ethereum/tests`\n\nrun tests with command: `cargo run --release -- statetest tests/GeneralStateTests/ tests/LegacyTests/Constantinople/GeneralStateTests`\n\n`GeneralStateTests` contains all tests related to EVM.\n\n## Running benchmarks\n\nTODO needs to be updated. Benches can now be found inside `crates/revm/benches`\n\n```shell\ncargo run --package revm-test --release --bin snailtracer\n```\n\n```shell\ncargo flamegraph --root --freq 4000 --min-width 0.001 --package revm-test --bin snailtracer\n```\n\n## Running example\n\n```shell\ncargo run -p revm --features ethersdb --example fork_ref_transact\n```\n\n# Used by:\n\n* [Foundry](https://github.com/foundry-rs/foundry) is a blazing fast, portable and modular toolkit for Ethereum application development written in Rust.\n* [Helios](https://github.com/a16z/helios) is a fully trustless, efficient, and portable Ethereum light client written in Rust.\n* [Reth](https://github.com/paradigmxyz/reth) Modular, contributor-friendly and blazing-fast implementation of the Ethereum protocol\n* [Arbiter](https://github.com/primitivefinance/arbiter) is a framework for stateful Ethereum smart-contract simulation\n* [Zeth](https://github.com/risc0/zeth) is an open-source ZK block prover for Ethereum built on the RISC Zero zkVM.\n* ...\n\n(If you want to add project to the list, ping me or open the PR)\n\n# Documentation\n\nThe book can be found at github page here: https://bluealloy.github.io/revm/\n\nThe documentation (alas needs some love) can be found here: https://bluealloy.github.io/revm/docs/\n\nTo serve the mdbook documentation in a local environment, ensure you have mdbook installed (if not install it with cargo) and then run:\n\n```shell\nmdbook serve documentation\n```\n\n# Contact\n\nThere is public telegram group: https://t.me/+Ig4WDWOzikA3MzA0\n\nOr if you want to hire me or contact me directly, here is my email: dragan0rakita@gmail.com and telegram: https://t.me/draganrakita\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fflashbots%2Frevm","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fflashbots%2Frevm","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fflashbots%2Frevm/lists"}