Coder Social home page Coder Social logo

rijulraj456 / i.scroll-prover Goto Github PK

View Code? Open in Web Editor NEW

This project forked from scroll-tech/scroll-prover

2.0 0.0 0.0 19.23 MB

1.Scroll's zkEVM rust crates

Home Page: https://scroll.io

License: Apache License 2.0

Shell 3.14% Rust 95.32% Makefile 1.41% Dockerfile 0.13%

i.scroll-prover's Introduction

๐Ÿ“œ scroll-zkevm ๐Ÿ“œ

Unit Test issues

Usage

Prerequisite

Fetch git-submodule of test traces

git submodule init
git submodule update --checkout

Download all setup params, degree 20 and 25 are used in config.rs. Could only download params of degree 25, but it may affect performance (when dowsizing to 20).

make download-setup -e degree=20
make download-setup -e degree=25

Or specify other degree and target directory to download.

# As default `degree=25` and `params_dir=./prover/test_params`.
make download-setup -e degree=DEGREE params_dir=PARAMS_DIR

Testing

make test-chunk-prove is the main testing entry point for the multi-level circuit constraint system of scroll-zkevm. Developers could understand how the system works by reading the codes of this test.

Besides it, make test-inner-prove could be used to test the first-level circuit, and make-comp-prove could be used to test two-layers compression circuits.

Binaries

This repository is designed to be used as a Rust crate, rather than a standalone running process. However, you can still use the following command to run binaries locally.

If you run into linking issues you may need to run

cp `find ./target/release/ | grep libzktrie.so` /usr/local/lib/

To move the zktrielib into a path where your linker could locate it.

Run prover

cargo build --release --bin prove

./target/release/prove --help

Could specify arguments as

cargo run --release --bin prove -- --params=./prover/test_params --trace=./prover/tests/traces/erc20/10_transfer.json

Run verifier

cargo build --release --bin verify

./target/release/verify --help

Could specify arguments as

cargo run --release --bin verify -- --params=./prover/test_params --vk=./proof_data/chunk.vkey

License

Licensed under either of

at your option.

i.scroll-prover's People

Contributors

lispc avatar haoyuathz avatar lawliet-chan avatar silathdiir avatar noel2004 avatar icemelon avatar controlcpluscontrolv avatar 29988122 avatar scroll-dev avatar mask-pp avatar tranhoaison avatar zhenfeizhang avatar

Stargazers

rijul3 avatar ENERGY RIJUL 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.