Giter VIP home page Giter VIP logo

ya-zksync-prover's Introduction

Yagna zksync prover

Runs zksync prover on yagna providers.

Instruction

Running ya-zksync-prover with local zksync server

Preparing environment

Running zksync prover on Yagna

If you have environment prepared

  • Launch zksync environment zk up. This starts docker-compose with local Geth and some other stuff necessary for zksync server to work.
  • Launch zksync server zk server.
  • Launch Yagna Provider or use public Providers network.
    • If you decide to setup only local provider, remember to set subnet parameter.
  • Launch Yagna Requestor
    • Set YAGNA_APPKEY environment variable in your .env or export as shell variable. (Use .env-template as example)
    • yagna service run
  • Run ya-zksync-prover. In repo directory type:
    mkdir -p workdir
    cp .env-template workdir/.env
    cd workdir
    cargo run
    
  • Add transactions to zksync server. To do this you can use zcli. For example:
    ./zcli deposit 5 ETH 0x0532c4b81d77cbc75f05bb41cedeb1bfb31d6d77
    ./zcli transfer 0.01 ETH 0x91b91be45d70896ed8376384bff01367660f4ae9
    
  • ya-zksync-prover should start proving blocks now.

Building dockers manually

To build docker images run:

./docker/build-dockers.sh

This will build ya-zksync-prover image, that can be converted to vm image and my-geth, that is usefull for running zksync server with initialized accounts.

Debugging docker image

Yagna Requestor (ya-zksync-node binary) places all downloaded artifacts in the same directory structure as the will appear on Provider. You can run ya-zksync-prover image locally to check if it works properly.

You need blocks and job information to be able to compute proof. You can run Requestor agent that will download all data from zksync server and will place it in your workind directory.

ya-zksync-prover's People

Contributors

nieznanysprawiciel avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

tworec

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.