Skip to content

Commit 02da775

Browse files
committed
Merge remote-tracking branch 'origin/main' into feat/zkvm-profile-cycles
2 parents 0bb34b1 + 1d469dd commit 02da775

File tree

15 files changed

+1562
-1019
lines changed

15 files changed

+1562
-1019
lines changed

Cargo.lock

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

Cargo.toml

Lines changed: 41 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -4,21 +4,24 @@ version = "0.1.0"
44
edition = "2021"
55

66
[dependencies]
7-
openvm = { git = "https://github.com/scroll-tech/openvm.git", branch = "feat/native_multi_observe", default-features = false }
8-
openvm-circuit = { git = "https://github.com/scroll-tech/openvm.git", branch = "feat/native_multi_observe", default-features = false, features = ["bench-metrics"] }
9-
openvm-native-circuit = { git = "https://github.com/scroll-tech/openvm.git", branch = "feat/native_multi_observe", default-features = false }
10-
openvm-native-compiler = { git = "https://github.com/scroll-tech/openvm.git", branch = "feat/native_multi_observe", default-features = false }
11-
openvm-native-compiler-derive = { git = "https://github.com/scroll-tech/openvm.git", branch = "feat/native_multi_observe", default-features = false }
12-
openvm-native-recursion = { git = "https://github.com/scroll-tech/openvm.git", branch = "feat/native_multi_observe", default-features = false }
13-
openvm-stark-backend = { git = "https://github.com/openvm-org/stark-backend.git", rev = "f48090c9febd021f8ee0349bc929a775fb1fa3ad", default-features = false }
14-
openvm-stark-sdk = { git = "https://github.com/openvm-org/stark-backend.git", rev = "f48090c9febd021f8ee0349bc929a775fb1fa3ad", default-features = false }
7+
openvm = { git = "https://github.com/scroll-tech/openvm.git", default-features = false }
8+
openvm-circuit = { git = "https://github.com/scroll-tech/openvm.git", default-features = false, features = ["bench-metrics"] }
9+
openvm-native-circuit = { git = "https://github.com/scroll-tech/openvm.git", default-features = false }
10+
openvm-native-compiler = { git = "https://github.com/scroll-tech/openvm.git", default-features = false }
11+
openvm-native-compiler-derive = { git = "https://github.com/scroll-tech/openvm.git", default-features = false }
12+
openvm-native-recursion = { git = "https://github.com/scroll-tech/openvm.git", default-features = false }
13+
openvm-stark-backend = { git = "https://github.com/openvm-org/stark-backend.git", tag = "v1.1.1", default-features = false }
14+
openvm-stark-sdk = { git = "https://github.com/openvm-org/stark-backend.git", tag = "v1.1.1", default-features = false }
1515

1616
rand = { version = "0.8.5", default-features = false }
1717
itertools = { version = "0.13.0", default-features = false }
1818
bincode = "1.3.3"
1919
tracing = "0.1.40"
20+
serde = { version = "1.0", features = ["derive"] }
21+
serde_json = "1.0"
2022

2123
# Plonky3
24+
# replace all dep with `p3` from gkr-backend
2225
p3-air = { git = "https://github.com/Plonky3/Plonky3.git", rev = "539bbc84085efb609f4f62cb03cf49588388abdb" }
2326
p3-baby-bear = { git = "https://github.com/Plonky3/Plonky3.git", rev = "539bbc84085efb609f4f62cb03cf49588388abdb" }
2427
p3-field = { git = "https://github.com/Plonky3/Plonky3.git", rev = "539bbc84085efb609f4f62cb03cf49588388abdb" }
@@ -29,7 +32,7 @@ p3-challenger = { git = "https://github.com/Plonky3/Plonky3.git", rev = "539bbc8
2932
p3-monty-31 = { git = "https://github.com/Plonky3/Plonky3.git", rev = "539bbc84085efb609f4f62cb03cf49588388abdb" }
3033
p3-symmetric = { git = "https://github.com/Plonky3/Plonky3.git", rev = "539bbc84085efb609f4f62cb03cf49588388abdb" }
3134
p3-fri = { git = "https://github.com/Plonky3/Plonky3.git", rev = "539bbc84085efb609f4f62cb03cf49588388abdb" }
32-
p3-goldilocks = { git = "https://github.com/Plonky3/plonky3", rev = "539bbc84085efb609f4f62cb03cf49588388abdb" }
35+
p3-goldilocks = { git = "https://github.com/Plonky3/Plonky3.git", rev = "539bbc84085efb609f4f62cb03cf49588388abdb" }
3336

3437
# WHIR
3538
ark-std = { version = "0.5", features = ["std"] }
@@ -38,26 +41,36 @@ ark-poly = "0.5"
3841
ark-serialize = "0.5"
3942

4043
# Ceno
41-
ceno_mle = { git = "https://github.com/scroll-tech/ceno.git", branch = "build/smaller_field_support_plonky3_539bbc", package = "multilinear_extensions" }
42-
ceno_sumcheck = { git = "https://github.com/scroll-tech/ceno.git", branch = "build/smaller_field_support_plonky3_539bbc", package = "sumcheck" }
43-
ceno_transcript = { git = "https://github.com/scroll-tech/ceno.git", branch = "build/smaller_field_support_plonky3_539bbc", package = "transcript" }
44-
ceno_witness = { git = "https://github.com/scroll-tech/ceno.git", branch = "build/smaller_field_support_plonky3_539bbc", package = "witness" }
45-
ceno_zkvm = { git = "https://github.com/scroll-tech/ceno.git", branch = "build/smaller_field_support_plonky3_539bbc" }
46-
ceno_emul = { git = "https://github.com/scroll-tech/ceno.git", branch = "build/smaller_field_support_plonky3_539bbc" }
47-
mpcs = { git = "https://github.com/scroll-tech/ceno.git", branch = "build/smaller_field_support_plonky3_539bbc" }
48-
ff_ext = { git = "https://github.com/scroll-tech/ceno.git", branch = "build/smaller_field_support_plonky3_539bbc" }
49-
serde = { version = "1.0", features = ["derive"] }
50-
serde_json = "1.0"
44+
ceno_mle = { git = "https://github.com/scroll-tech/gkr-backend.git", rev = "v1.0.0-alpha.6", package = "multilinear_extensions" }
45+
ceno_sumcheck = { git = "https://github.com/scroll-tech/gkr-backend.git", rev = "v1.0.0-alpha.6", package = "sumcheck" }
46+
ceno_transcript = { git = "https://github.com/scroll-tech/gkr-backend.git", rev = "v1.0.0-alpha.6", package = "transcript" }
47+
ceno_witness = { git = "https://github.com/scroll-tech/gkr-backend.git", rev = "v1.0.0-alpha.6", package = "witness" }
48+
ceno_zkvm = { git = "https://github.com/scroll-tech/ceno.git", branch = "master" }
49+
ceno_emul = { git = "https://github.com/scroll-tech/ceno.git", branch = "master" }
50+
gkr_iop = { git = "https://github.com/scroll-tech/ceno.git", branch = "master" }
51+
mpcs = { git = "https://github.com/scroll-tech/gkr-backend.git", rev = "v1.0.0-alpha.6" }
52+
ff_ext = { git = "https://github.com/scroll-tech/gkr-backend.git", rev = "v1.0.0-alpha.6" }
5153

5254
[features]
55+
default = ["parallel", "nightly-features"]
56+
nightly-features = [
57+
"ceno_zkvm/nightly-features",
58+
"openvm-stark-sdk/nightly-features",
59+
]
60+
parallel = ["openvm-stark-backend/parallel"]
5361
bench-metrics = ["openvm-circuit/bench-metrics"]
5462

55-
# [patch."https://github.com/scroll-tech/ceno.git"]
56-
# ceno_mle = { path = "../ceno/multilinear_extensions", package = "multilinear_extensions" }
57-
# ceno_sumcheck = { path = "../ceno/sumcheck", package = "sumcheck" }
58-
# ceno_transcript = { path = "../ceno/transcript", package = "transcript" }
59-
# ceno_witness = { path = "../ceno/witness", package = "witness" }
60-
# ceno_zkvm = { path = "../ceno/ceno_zkvm" }
61-
# ceno_emul = { path = "../ceno/ceno_emul" }
62-
# mpcs = { path = "../ceno/mpcs" }
63-
# ff_ext = { path = "../ceno/ff_ext" }
63+
# [patch."https://github.com/scroll-tech/gkr-backend"]
64+
# ff_ext = { path = "../gkr-backend/crates/ff_ext", package = "ff_ext" }
65+
# ceno_mle = { path = "../gkr-backend/crates/multilinear_extensions", package = "multilinear_extensions" }
66+
# mpcs = { path = "../gkr-backend/crates/mpcs", package = "mpcs" }
67+
# ceno_poseidon = { path = "../gkr-backend/crates/poseidon", package = "poseidon" }
68+
# ceno_sumcheck = { path = "../gkr-backend/crates/sumcheck", package = "sumcheck" }
69+
# ceno_transcript = { path = "../gkr-backend/crates/transcript", package = "transcript" }
70+
# ceno_whir = { path = "../gkr-backend/crates/whir", package = "whir" }
71+
# ceno_witness = { path = "../gkr-backend/crates/witness", package = "witness" }
72+
73+
# [patch."https://github.com/scroll-tech/ceno"]
74+
# ceno_zkvm = { path = "../ceno/ceno_zkvm", package = "ceno_zkvm" }
75+
# ceno_emul = { path = "../ceno/ceno_emul", package = "ceno_emul" }
76+
# gkr_iop = { path = "../ceno/gkr_iop", package = "gkr_iop" }

rust-toolchain.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
[toolchain]
22
channel = "nightly-2025-03-25"
33
targets = ["riscv32im-unknown-none-elf"]
4-
components = ["clippy", "rustfmt", "rust-src"]
4+
components = ["clippy", "rustfmt", "rust-src"]

scripts/e2e_test.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,11 @@ if [ ! -d "$REPO_ROOT/build/ceno" ] || [ -z "$(ls -A "$REPO_ROOT/build/ceno" 2>/
99
fi
1010

1111
# Enter the ceno directory
12-
cd $REPO_ROOT/build/ceno && git checkout build/smaller_field_support_plonky3_539bbc
12+
cd $REPO_ROOT/build/ceno && git checkout master && git pull origin master
1313

1414
# Execute the ceno_zkvm e2e test
1515
RUST_LOG=info cargo run --release --package ceno_zkvm --bin e2e -- --platform=ceno \
16-
--hints=10 --public-io=4191 examples/target/riscv32im-ceno-zkvm-elf/release/examples/fibonacci \
16+
examples/target/riscv32im-ceno-zkvm-elf/release/examples/keccak_syscall \
1717
--field=baby-bear
1818

1919
mkdir -p $REPO_ROOT/src/e2e/encoded

0 commit comments

Comments
 (0)