Coder Social home page Coder Social logo

powdr-revme's Introduction

powdr-revme

This repository uses powdr as a library to make ZK proofs for the Ethereum tests via revm. It is meant as test- and benchmark-bed for powdr and provers.

Please see the powdr docs for basic instructions on how to use powdr as a library.

Usage

Usage: bin [OPTIONS] --test <TEST>

Options:
  -t, --test <TEST>
  -o, --output <OUTPUT>  [default: .]
  -f, --fast-tracer
  -w, --witgen
  -p, --proofs
  -h, --help             Print help

Checkout the Ethereum tests. The only argument required is the test path. The path may be a single file or a directory. If only the path is given, powdr only compiles the Rust code all the way to powdr-PIL. The fast tracer is a powdr-IR executor that is useful for quick checks. Witness generation (witgen) creates the witness required for proofs. Proofs have not been added to this repo yet.

Example running only the fast tracer:

cargo run -r -- -t tests/accessListExample.json -f

Crates

This repo contains 3 crates:

  • bin: the main binary, meant to run natively. It reads the given tests and manages calls to powdr.
  • evm: the code we want to make proofs for. It deserializes a test suite, runs revm, and asserts that the test expectation is met. Most of the code here comes from revme.
  • models: some data structures needed for test ser/derialization. This code comes from revme.

powdr-revme's People

Contributors

dyxushuai avatar eigmax avatar georgwiese avatar leonardoalt avatar lvella avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  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.