Skip to content

Commit b699538

Browse files
committed
test verifier change
1 parent fd70230 commit b699538

File tree

6 files changed

+74
-36
lines changed

6 files changed

+74
-36
lines changed

Cargo.lock

Lines changed: 14 additions & 13 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -60,12 +60,12 @@ openvm-primitives = { path = "./crates/primitives" }
6060
openvm-reth-benchmark = { path = "./crates/host-bench", default-features = false }
6161
openvm-mpt = { path = "./crates/mpt" }
6262
# ceno
63-
ceno_emul = { git = "https://github.com/scroll-tech/ceno", branch = "master" }
64-
ceno_host = { git = "https://github.com/scroll-tech/ceno", branch = "master" }
65-
ceno_zkvm = { git = "https://github.com/scroll-tech/ceno", branch = "master" }
66-
ceno_cli = { git = "https://github.com/scroll-tech/ceno", package = "cargo-ceno", branch = "master" }
67-
ceno_recursion = { git = "https://github.com/scroll-tech/ceno", branch = "master" }
68-
gkr_iop = { git = "https://github.com/scroll-tech/ceno", branch = "master" }
63+
ceno_emul = { git = "https://github.com/scroll-tech/ceno", rev = "26c88fb0f3b96a3c419bb02fb02f94442fa4519a" }
64+
ceno_host = { git = "https://github.com/scroll-tech/ceno", rev = "26c88fb0f3b96a3c419bb02fb02f94442fa4519a" }
65+
ceno_zkvm = { git = "https://github.com/scroll-tech/ceno", rev = "26c88fb0f3b96a3c419bb02fb02f94442fa4519a" }
66+
ceno_cli = { git = "https://github.com/scroll-tech/ceno", package = "cargo-ceno", rev = "26c88fb0f3b96a3c419bb02fb02f94442fa4519a" }
67+
ceno_recursion = { git = "https://github.com/scroll-tech/ceno", rev = "26c88fb0f3b96a3c419bb02fb02f94442fa4519a" }
68+
gkr_iop = { git = "https://github.com/scroll-tech/ceno", rev = "26c88fb0f3b96a3c419bb02fb02f94442fa4519a" }
6969
ff_ext = { git = "https://github.com/scroll-tech/gkr-backend.git", tag = "v1.0.0-alpha.19" }
7070
mpcs = { git = "https://github.com/scroll-tech/gkr-backend.git", tag = "v1.0.0-alpha.19" }
7171

@@ -166,7 +166,7 @@ openvm-k256 = { git = "https://github.com/scroll-tech/openvm.git", package = "k2
166166
openvm-p256 = { git = "https://github.com/scroll-tech/openvm.git", package = "p256", branch = "feat/v1.4.1-scroll-ext" }
167167

168168
[patch."https://github.com/scroll-tech/ceno-gpu-mock.git"]
169-
ceno_gpu = { git = "ssh://git@github.com/scroll-tech/ceno-gpu.git", package = "cuda_hal", branch = "main", default-features = false, features = ["bb31"] }
169+
ceno_gpu = { git = "ssh://git@github.com/scroll-tech/ceno-gpu.git", package = "cuda_hal", rev = "237f846b6f138f0ecb9a30320db14939bb6374c0", default-features = false, features = ["bb31"] }
170170
# ceno_gpu = { path = "../ceno-gpu/cuda_hal", package = "cuda_hal", default-feature = false, features = ["bb31"] }
171171

172172
[patch."https://github.com/axiom-crypto/openvm-kzg.git"]

README.md

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,16 @@ To prove with GPU, add `--features gpu --config net.git-fetch-with-cli=true` as
4242

4343
to prove with recursion, set mode to `--mode prove-stark`
4444

45+
### Configure Chain ID
46+
47+
`server/prove_block.sh` forwards a `--chain-id` flag to every benchmark binary invocation. Set the target chain via the `CHAIN_ID` environment variable (defaults to `1` for Ethereum mainnet):
48+
49+
```
50+
CHAIN_ID=5 server/prove_block.sh <proof_uuid>
51+
```
52+
53+
This ensures locally generated inputs, fixtures, and proofs align with the intended network.
54+
4555
### (Optional) key-gen pk for next use
4656

4757
let say fixture dir in `./pk`
@@ -63,4 +73,4 @@ bash cargo_update_ceno.sh
6373
which will update cargo dependency related to ceno accordingly
6474

6575
### More details
66-
Check [openvm-reth-benchmark README](https://github.com/axiom-crypto/openvm-reth-benchmark/blob/main/README.md) for more details
76+
Check [openvm-reth-benchmark README](https://github.com/axiom-crypto/openvm-reth-benchmark/blob/main/README.md) for more details

bin/ceno-client-eth/Cargo.lock

Lines changed: 33 additions & 10 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

bin/ceno-client-eth/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ edition = "2021"
99
# workspace
1010
openvm-client-executor = { path = "../../crates/executor/client" }
1111
ceno_syscall = { git = "https://github.com/scroll-tech/ceno-patch", branch = "main", default-features = false }
12-
ceno_rt = { git = "https://github.com/scroll-tech/ceno", branch = "master", default-features = false }
13-
ceno_crypto = { git = "https://github.com/scroll-tech/ceno", branch = "master", default-features = false }
12+
ceno_rt = { git = "https://github.com/scroll-tech/ceno", rev = "38bd7506e025737a32da589ea59268da5cba18e1", default-features = false }
13+
ceno_crypto = { git = "https://github.com/scroll-tech/ceno", rev = "38bd7506e025737a32da589ea59268da5cba18e1", default-features = false }
1414
bincode = { version = "2.0.1", default-features = false, features = [
1515
"derive",
1616
"alloc",

server/prove_block.sh

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ CENO_STATUS_API_KEY="${CENO_STATUS_API_KEY:-}"
1010
CENO_CLUSTER_ID="${CENO_CLUSTER_ID:-}"
1111
VERIFIER_ID="${VERIFIER_ID:-0.1}"
1212
CENO_GPU_CACHE_LEVEL="${CENO_GPU_CACHE_LEVEL:-none}"
13+
CHAIN_ID="${CHAIN_ID:-1}"
1314

1415
# Wrapper around the Ceno benchmark binary to allow post-processing
1516
# after proving completes. All arguments are forwarded to the binary.
@@ -139,7 +140,8 @@ else
139140
--mode make-input \
140141
--block-number "$BLOCK_NUMBER" \
141142
--rpc-url "$ETH_RPC_URL" \
142-
--generated-input-path "$cache_root"
143+
--generated-input-path "$cache_root" \
144+
--chain-id "$CHAIN_ID"
143145

144146
GENERATED_INPUT_PATH="$(find_generated_input)"
145147
if [[ -z "$GENERATED_INPUT_PATH" ]]; then
@@ -182,7 +184,8 @@ if [[ ! -f "$AGG_PK_PATH" ]]; then
182184
--internal-log-blowup "$INTERNAL_LOG_BLOWUP" \
183185
--root-log-blowup "$ROOT_LOG_BLOWUP" \
184186
--max-segment-length "$MAX_SEGMENT_LENGTH" \
185-
--segment-max-cells "$SEGMENT_MAX_CELLS"
187+
--segment-max-cells "$SEGMENT_MAX_CELLS" \
188+
--chain-id "$CHAIN_ID"
186189
fi
187190

188191
if [[ ! -f "$AGG_PK_PATH" ]]; then
@@ -216,7 +219,8 @@ export CENO_GPU_CACHE_LEVEL
216219
--segment-max-cells "$SEGMENT_MAX_CELLS" \
217220
--agg-pk-path "$AGG_PK_PATH" \
218221
--output-dir "$job_dir" \
219-
--skip-comparison
222+
--skip-comparison \
223+
--chain-id "$CHAIN_ID"
220224
# --app-pk-path /app/app_pk \
221225

222226
status=$?

0 commit comments

Comments
 (0)