Skip to content

Eigen zkVM's Proving Pipeline and StateDB

Notifications You must be signed in to change notification settings

Soontina/eigen-prover

 
 

Repository files navigation

eigen-prover

This repo aims to build components:

  • executor
  • statedb
  • prover

Conf

executor: 50071 statedb: 50061 prover_server listen at 50081

Server

Use grpc server

cd service
DATABASE_URL="postgresql://prover_user:prover_pass@127.0.0.1:5432/prover_db" \
PROVER_FORK_ID=4  NODE_ADDR=http://127.0.0.1:50081 TASK_NAME=XXXXX RUST_LOG=debug cargo run --release

Change the TASK_NAME to your task name.

StateDB

# create
cd statedb
bash -x install_db.sh create state root password

sudo apt install libpq-dev
export DATABASE_URL="postgresql://root:password@127.0.0.1:5432/state"

diesel migration run
cargo run --example nodes

# delete
bash -x install_db.sh delete state root

Sqlite

Not support

sudo apt install libsqlite3-dev
cargo install diesel_cli --no-default-features --features sqlite
cargo build --release --features sqlite

export DATABASE_URL=/tmp/database.sql
diesel migration run
cargo run --example nodes

About

Eigen zkVM's Proving Pipeline and StateDB

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Rust 97.8%
  • Other 2.2%