Single entity (authority) based VOID blockchain implementation
For CPU proving, run with the following command:
cd zk_risc0/host
RUSTFLAGS="-Ctarget-cpu=native" cargo run --release
For GPU proving, run with the following command:
cd zk_risc0/host
RUSTFLAGS="-Ctarget-cpu=native" cargo run --release -F cuda
Note: GPU proving takes a VERY long time to compile due to having to build the GPU kernels
For faster key generation, use the following:
RUSTFLAGS="-Ctarget-cpu=native"
The following commands can be used to run the prover in a profiling mode:
RISC0_PPROF_OUT=./profile.pb RUST_LOG=info RISC0_DEV_MODE=1 RISC0_INFO=1 cargo run
go tool pprof -http=127.0.0.1:8000 profile.pb