Home

Awesome

SputnikVM: Rust Ethereum Virtual Machine Implementation

Build Status License

NameDescriptionCrates.ioDocumentation
evmCore library for the Ethereum Virtual Machinecrates.ioDocumentation
evm-statefulMerkle Trie stateful wrapper for SputnikVMcrates.ioDocumentation

Features

Supported Networks

Supported Networks

NetworkCrates.ioDocumentation
Any Networkcrates.ioDocumentation
Ethereum Classiccrates.ioDocumentation
Ethereumcrates.ioDocumentation
Ellaismcrates.ioDocumentation
Ubiqcrates.ioDocumentation
Expansecrates.ioDocumentation
Musicoincrates.ioDocumentation

Precompiled Contracts

The core library has the initial four precompiled contracts embedded. To use the bn128 and modexp precompiled contracts introduced by the Byzantium hard fork, pull the following crates.

NameDescriptionCrates.ioDocumentation
evm-precompiled-bn128bn128 precompiled contractscrates.ioDocumentation
evm-precompiled-modexpmodexp precompiled contractscrates.ioDocumentation

Related projects

Dependencies

Ensure you have at least rustc 1.33.0 (2aa4c46cf 2019-02-28). Rust 1.32.0 and before is not supported.

Documentation

Build from sources

SputnikVM is written Rust. If you are not familiar with Rust please see the getting started guide.

Build

To start working with SputnikVM you'll need to install rustup, then you can do:

$ git clone git@github.com:ethereumproject/evm-rs.git
$ cd evm-rs
$ cargo build --release --all

Testing

We currently use two ways to test SputnikVM and ensure its execution aligns with other Ethereum Virtual Machine implementations:

To run all tests, execute the following command in the cloned repository:

$ cargo test --all

Contribution

Formatting policies are described in GUIDE.md, and the recommended automated formatting techniques may be found at FORMATTING.md

License

Apache 2.0