Skip to content

Commit 70ad345

Browse files
authored
sync with ceno master (#26)
1 parent fd70230 commit 70ad345

File tree

6 files changed

+72
-30
lines changed

6 files changed

+72
-30
lines changed

Cargo.lock

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

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: 14 additions & 12 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: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ alloy-primitives = { version = "1.4.1", features = ["native-keccak"] }
3434

3535
[patch.crates-io]
3636
k256 = { git = "https://github.com/scroll-tech/elliptic-curves", branch = "ceno/k256-13.4" }
37+
p256 = { git = "https://github.com/scroll-tech/elliptic-curves", branch = "ceno/k256-13.4" }
3738

3839
#[patch."https://github.com/scroll-tech/ceno"]
3940
#ceno_rt = { path = "../../../ceno/ceno_rt" }

bin/ceno-host/deny.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ skip = [
2525
{ name = "hashbrown" },
2626
{ name = "itertools" },
2727
{ name = "k256" },
28+
{ name = "p256" },
2829
{ name = "lru" },
2930
{ name = "num-bigint" },
3031
{ name = "num-modular" },
@@ -56,4 +57,5 @@ skip = [
5657
{ name = "windows_x86_64_gnullvm" },
5758
{ name = "windows_x86_64_msvc" },
5859
{ name = "winnow" },
60+
{ name = "primeorder" },
5961
]

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)