Giter Club home page Giter Club logo

scroll-zkevm's Introduction

scroll-zkevm

Unit Test issues

Scroll common rust crates.

Usage

Libraries

Import as an dependency to use.

Binaries

Setup

cargo build --release --bin setup   

./target/release/setup --params <params-file-path> --seed <seed-file-path>

Prove

cargo build --release --bin prove

./target/release/prove --params zkevm/test_params --seed zkevm/test_seed --trace zkevm/tests/erc20/multiple.json --evm evm_proof_multiple-erc20 --state state_proof_multiple-erc20

Test

By default, prover tests are disabled due to heavy computations, if you want to run the prover test, please run:

RUST_LOG=info cargo test --features prove_verify --release test_evm_prove_verify

or

RUST_LOG=info cargo test --features prove_verify --release test_state_prove_verify

(Please don't run test_evm_prove_verify and test_state_prove_verify concurrently.)

By default, it run the test for a trace corresponding to a block containing multiple erc20 txs. You can config mode ENV to test other trace:

  • MODE=single for a block containing 1 erc20 tx.
  • MODE=native for a block containing 1 native ETH transfer tx.
  • MODE=greeter for a block containing 1 Greeter contract set_value call tx.
  • MODE=empty for an empty block.

License

Licensed under either of

at your option.

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.