Closed
Description
What I did
Followed the instructions to download Groth16 artifacts. Then in aptos/proof-server
I run
RUST_LOG="info" GROTH16=1 RUN_SERIAL=1 RUSTFLAGS="-C target-cpu=native --cfg tokio_unstable" PRIMARY_ADDR="127.0.0.1:8080" SECONDARY_ADDR="127.0.0.1:8081" cargo +nightly bench --bench proof_server
Error
The bench runs for ~10 minutes, and then
[sp1] groth16 artifacts already seem to exist at /home/winston/.sp1/circuits/groth16/9f43e920. if you want to re-download them, delete the directory
[2024-06-12T21:47:19Z INFO tracing::span] wrap_groth16;
21:48:13 DBG constraint system solver done nbConstraints=31672801 took=33397.754915
21:48:35 DBG prover done acceleration=none backend=groth16 curve=bn254 nbConstraints=31672801 took=21582.373202
21:48:35 DBG verifier done backend=groth16 curve=bn254 took=1.455834
ignoring uninitialized slice: Vars []frontend.Variable
ignoring uninitialized slice: Vars []frontend.Variable
ignoring uninitialized slice: Vars []frontend.Variable
21:48:35 DBG verifier done backend=groth16 curve=bn254 took=1.218702
[2024-06-12T21:48:35Z INFO server_secondary] Proof generated. Serializing
[2024-06-12T21:48:35Z INFO server_secondary] Sending proof to the primary server
[2024-06-12T21:48:35Z INFO server_secondary] Proof sent
[2024-06-12T21:48:35Z INFO server_primary] Proof received. Sending it to the primary server
[2024-06-12T21:48:35Z INFO server_primary] Proof sent
Error: unexpected end of file
I believe the error is happening here: https://github.com/lurk-lab/zk-light-clients/blob/69890d34dd39ab13b15dfc2b5d8370ee08aa1637/aptos/proof-server/benches/proof_server.rs#L204
Machine
GCP sphinx-test-1