Coder Social home page Coder Social logo

revm's Introduction

revm - Rust Ethereum Virtual Machine

Is EVM written in rust that is focused on speed and simplicity. It has fast and flexible implementation with simple interface and embedded Host. It is passing all ethereum/tests test suits

Here is list of things that i would like to use as guide in this project:

  • EVM compatibility and stability - this goes without saying but it is nice to put it here. In blockchain industry, stability is most desired attribute of any system.
  • Speed - is one of the most important things and most decisions are made to complement this.
  • 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.
  • interfacing - [no_std] so that it can be used as wasm lib and integrate with JavaScript and cpp binding if needed.

Project

structure:

  • crates
    • revm -> main EVM library.
    • revm-primitives -> Primitive data types.
    • revm-interpreter -> Execution loop with instructions
    • revm-precompile -> EVM precompiles
  • bins:
    • revme: cli binary, used for running state test json
    • revm-test: test binaries with contracts, used mostly to check performance

Last checked revm requires rust v1.65 or higher for core::error::Error

There were some big efforts on optimization of revm:

Running eth tests

go to cd bins/revme/

Download eth tests from (this will take some time): git clone https://github.com/ethereum/tests

run tests with command: cargo run --release -- statetest tests/GeneralStateTests/ tests/LegacyTests/Constantinople/GeneralStateTests

GeneralStateTests contains all tests related to EVM.

Running benchmarks

cargo run --package revm-test --release --bin snailtracer
cargo flamegraph --root --freq 4000 --min-width 0.001 --package revm-test --bin snailtracer

Running example

cargo run -p revm --features ethersdb --example fork_ref_transact

Used by:

(If you want to add your project to the list, ping me or open the PR)

Contact

There is public telegram group: https://t.me/+Ig4WDWOzikA3MzA0

Or if you want to hire me or contact me directly, here is my email: [email protected] and telegram: https://t.me/draganrakita

revm's People

Contributors

rakita avatar dependabot[bot] avatar mattsse avatar onbjerg avatar wodann avatar gakonst avatar shekhirin avatar ngotchac avatar gd-0 avatar rkrasiuk avatar perama-v avatar ufoscout avatar 0xjepsen avatar oblique avatar evalir avatar chirag-bgh avatar teddav avatar 0xdmtri avatar kuly14 avatar flyq avatar joshiedo avatar omahs avatar pistomat avatar wtdcode avatar ckoopmann avatar adria0 avatar owen66 avatar wardbradt avatar valo avatar frankudoags avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.