Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
95 commits
Select commit Hold shift + click to select a range
696112c
cargo check
lispc Aug 7, 2025
0b29ccf
fix
lispc Aug 7, 2025
93143ff
fix
lispc Aug 7, 2025
5b448e1
Merge remote-tracking branch 'origin/master' into feat/bincode-2
lispc Aug 7, 2025
7485db7
x
lispc Aug 7, 2025
4544de2
exchange code
lightsing Aug 15, 2025
a32b055
fix rebase
lightsing Aug 18, 2025
53caeb2
fmt
lightsing Aug 18, 2025
c20af71
actually Infallible
lightsing Aug 18, 2025
77f8ed0
fmt
lightsing Aug 18, 2025
3f21ca1
add validium
lightsing Aug 18, 2025
f8e93d4
mark todo
lightsing Aug 18, 2025
52755f9
add test data
lightsing Aug 18, 2025
c30be91
add test
lightsing Aug 18, 2025
f7102e7
Merge branch 'master' into feat/exchange-code-2
lightsing Aug 19, 2025
16a73f4
upgrade
lightsing Aug 19, 2025
3516c09
update openvm guest
lispc Aug 20, 2025
2119c17
Merge remote-tracking branch 'origin/feat/bincode-2' into feat/exchan…
lispc Aug 20, 2025
d56a94d
fmt & check
lispc Aug 20, 2025
a762941
update batch program
lispc Aug 20, 2025
8727b95
Merge remote-tracking branch 'origin/master' into feat/exchange-code-2
lispc Aug 20, 2025
2b9bec0
build
lispc Aug 20, 2025
4f32af3
build
lispc Aug 20, 2025
e8faa96
fix: remove tiny-keccak (#168)
lightsing Aug 20, 2025
af2af32
Merge branch 'feat/exchange-code-2' into feat/validium
lightsing Aug 20, 2025
6af6773
fix merge
lightsing Aug 20, 2025
1cc04a0
fix build
lightsing Aug 20, 2025
9205fd3
remove generic as no need for rkyv
lightsing Aug 20, 2025
d17451d
fmt
lightsing Aug 20, 2025
4ef6183
make ecies openvm irrelevant
lightsing Aug 20, 2025
ef9982a
add makefile
lightsing Aug 20, 2025
5bc5bad
fix download-release.sh
lispc Aug 20, 2025
115a396
proving 0.5.2
lispc Aug 21, 2025
3f0259f
fix tx data len
lispc Aug 21, 2025
ebdf516
feat: update sbv bincode (#169)
lightsing Aug 21, 2025
50b40ef
update ref
lightsing Aug 21, 2025
c6a5885
revert chunk_exe_commit.rs
lispc Aug 21, 2025
a80efbe
Merge branch 'feat/exchange-code-2' of github.com:scroll-tech/zkvm-pr…
lispc Aug 21, 2025
5fd1077
rewrite vk in testing
lispc Aug 21, 2025
6f13e69
Merge branch 'feat/exchange-code-2' into feat/validium
lightsing Aug 22, 2025
94ee758
sync
lightsing Aug 22, 2025
d8cfb32
add script
lightsing Aug 22, 2025
626ee62
add script
lightsing Aug 22, 2025
c24f864
Merge remote-tracking branch 'origin/master' into feat/exchange-code-2
lispc Aug 22, 2025
f141fd5
cleanup
lispc Aug 25, 2025
0b5e2d2
clean much old codes
lispc Aug 25, 2025
da3de4e
lint
lispc Aug 25, 2025
0d16a61
clippy
lispc Aug 25, 2025
bb64303
update sbv
lispc Aug 25, 2025
4a6edbc
0.6.0
lispc Aug 25, 2025
b5ac880
docker ignore
lispc Aug 25, 2025
ed6bf2d
build
lispc Aug 25, 2025
f41a99d
add exe_commit.rs
lispc Aug 25, 2025
e1d343f
Merge remote-tracking branch 'origin/master' into feat/exchange-code-3
lispc Aug 26, 2025
ed4dc89
Merge branch 'feat/exchange-code-2' into feat/validium
lispc Aug 26, 2025
edbb297
update
lispc Aug 26, 2025
4ab1b88
Merge remote-tracking branch 'origin/master' into feat/validium
lispc Sep 2, 2025
df6c966
validium batch-bundle (#175)
roynalnaruto Sep 3, 2025
b9465b4
clean
lispc Sep 3, 2025
f38bab7
Merge remote-tracking branch 'origin/master' into feat/validium
lispc Sep 3, 2025
2e79639
unify openvm to v1.4.0
lispc Sep 4, 2025
7f93b24
add old feynman witness structs
lispc Sep 4, 2025
e481a6b
fix gpu
Velaciela Sep 4, 2025
73bbfe7
fix
lispc Sep 4, 2025
51f3b0e
Merge branch 'feat/validium' of github.com:scroll-tech/zkvm-prover in…
Velaciela Sep 4, 2025
5824aaf
move blob_consistency/types.rs
lispc Sep 4, 2025
928cd43
fix
lispc Sep 4, 2025
896c403
Merge branch 'feat/validium' of github.com:scroll-tech/zkvm-prover in…
Velaciela Sep 4, 2025
0886897
minor improvements
lispc Sep 4, 2025
8f269c6
clean
lispc Sep 4, 2025
963a181
fmt
lispc Sep 4, 2025
c5e5ac8
better logging
lispc Sep 4, 2025
df579e5
commits
Velaciela Sep 4, 2025
0153837
add feature=host for types crate
lispc Sep 5, 2025
222f7e1
Merge branch 'master' into feat/validium
lispc Sep 5, 2025
d386e21
fix merge
lispc Sep 5, 2025
d9aad74
sanity check for blob
lispc Sep 5, 2025
a94b3a6
test: more data (feynman) for validium
roynalnaruto Sep 8, 2025
0902498
fix: path to witnesses
roynalnaruto Sep 8, 2025
4a5e1f7
Merge remote-tracking branch 'origin/master' into feat/validium
lispc Sep 8, 2025
25c122c
Merge remote-tracking branch 'origin/master' into feat/validium
lispc Sep 8, 2025
6e5fc66
Merge remote-tracking branch 'origin/master' into feat/validium
lispc Sep 8, 2025
4fd83bf
feat: update public for validium
roynalnaruto Sep 11, 2025
f8def9f
Merge remote-tracking branch 'origin/master' into feat/validium
lispc Sep 16, 2025
5c361ad
make ValidiumInputs public
lispc Sep 16, 2025
a41479d
chore: export version module
roynalnaruto Sep 16, 2025
aa935df
chore: serde for version types
roynalnaruto Sep 16, 2025
3d9e539
chore: commitments
lispc Sep 17, 2025
edfe2ab
release: update release name to validium
lispc Sep 17, 2025
f42e27b
fix: script syntax ?
lispc Sep 17, 2025
a8dd7e7
chore: restore changes
lispc Sep 17, 2025
8a1df4f
fix building scripts
noel2004 Sep 17, 2025
7e0b325
swtich back to non-force mode in gen verifier.bin
noel2004 Sep 17, 2025
c33fad1
it is 1.3.. a bit tricky.. will explain later.
lispc Sep 17, 2025
66d1f4e
update guest commits
noel2004 Sep 19, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/build-guest-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: Build ZKVM-Prover Guest
on:
push:
tags:
- 'v0.[0-9]+.[0-9]+'
- 'v0.[0-9]+.[0-9]+(-.*)?'

jobs:
build-guest:
Expand Down
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

/.output

!/releases/dev/verifier/verifier.bin
!/releases/dev/verifier/verifier.sol
/releases

*.log
Expand Down
143 changes: 142 additions & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

19 changes: 19 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -68,13 +68,15 @@ sbv-precompile = { git = "https://github.com/scroll-tech/stateless-block-verifie

alloy-primitives = { version = "1.3", default-features = false, features = ["std", "map-hashbrown", "map-fxhash", "rkyv"] }
alloy-serde = { version = "1.0.13", default-features = false }
alloy-sol-types = { version = "1.3", default-features = false }
bitcode = { version = "0.6.5", default-features = false, features = ["serde", "derive"] }
bincode_v1 = { version = "1.3", package = "bincode"}
bincode = { version = "2.0", features = ["serde"] }
cargo_metadata = "0.20"
clap = "4.5"
c-kzg = { version = "2.0" }
derivative = "2.2.0"
ecies = { git = "https://github.com/scroll-tech/ecies-rs" }
eyre = "0.6"
halo2curves-axiom = { version = "0.5.3" }
itertools = "0.14"
Expand Down Expand Up @@ -129,6 +131,23 @@ revm-state = { git = "https://github.com/scroll-tech/revm" }

alloy-primitives = { git = "https://github.com/scroll-tech/alloy-core", branch = "feat/rkyv" }

## FIXME: when openvm fixes https://github.com/openvm-org/openvm/pull/1937
#[patch.'https://github.com/openvm-org/openvm.git']
#openvm = { git = "https://github.com/lightsing/openvm.git", rev = "f834efa186784cfdb0401c8596e1264cc9030f97" }
#openvm-algebra-complex-macros = { git = "https://github.com/lightsing/openvm.git", rev = "f834efa186784cfdb0401c8596e1264cc9030f97" }
#openvm-custom-insn = { git = "https://github.com/lightsing/openvm.git", rev = "f834efa186784cfdb0401c8596e1264cc9030f97" }
#openvm-sha2 = { git = "https://github.com/lightsing/openvm.git", rev = "f834efa186784cfdb0401c8596e1264cc9030f97" }
#openvm-sha256-guest = { git = "https://github.com/lightsing/openvm.git", rev = "f834efa186784cfdb0401c8596e1264cc9030f97" }
#openvm-p256 = { git = "https://github.com/lightsing/openvm.git", package = "p256", rev = "f834efa186784cfdb0401c8596e1264cc9030f97" }
#openvm-k256 = { git = "https://github.com/lightsing/openvm.git", package = "k256", rev = "f834efa186784cfdb0401c8596e1264cc9030f97" }
#openvm-pairing = { git = "https://github.com/lightsing/openvm.git", rev = "f834efa186784cfdb0401c8596e1264cc9030f97" }
#openvm-keccak256-guest = { git = "https://github.com/lightsing/openvm.git", rev = "f834efa186784cfdb0401c8596e1264cc9030f97" }
#openvm-algebra-guest = { git = "https://github.com/lightsing/openvm.git", rev = "f834efa186784cfdb0401c8596e1264cc9030f97" }
#openvm-ecc-guest = { git = "https://github.com/lightsing/openvm.git", rev = "f834efa186784cfdb0401c8596e1264cc9030f97" }
#openvm-bigint-guest = { git = "https://github.com/lightsing/openvm.git", rev = "f834efa186784cfdb0401c8596e1264cc9030f97" }
#openvm-pairing-guest = { git = "https://github.com/lightsing/openvm.git", rev = "f834efa186784cfdb0401c8596e1264cc9030f97" }
#openvm-rv32im-guest = { git = "https://github.com/lightsing/openvm.git", rev = "f834efa186784cfdb0401c8596e1264cc9030f97" }

[profile.maxperf]
inherits = "release"
lto = "fat"
Expand Down
18 changes: 18 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,18 @@ else
CARGO_CONFIG_FLAG =
endif

SRS_PARAMS_DIR := $(HOME)/.openvm/params
SRS_PARAMS_URL := https://circuit-release.s3.us-west-2.amazonaws.com/scroll-zkvm/params
SRS_PARAMS := $(SRS_PARAMS_DIR)/kzg_bn254_22.srs $(SRS_PARAMS_DIR)/kzg_bn254_24.srs

# Download params if missing
$(SRS_PARAMS_DIR)/%.srs:
@mkdir -p $(SRS_PARAMS_DIR)
@if [ ! -f "$@" ]; then \
echo "Fetching $(@F) from $(SRS_PARAMS_URL)"; \
wget -q -O "$@" "$(SRS_PARAMS_URL)/$(@F)"; \
fi

download-release:
sh download-release.sh

Expand Down Expand Up @@ -54,6 +66,9 @@ test-execute-chunk:
test-execute-chunk-multi:
@cargo test $(CARGO_CONFIG_FLAG) --release -p scroll-zkvm-integration --test chunk_circuit test_execute_multi -- --exact --nocapture

test-execute-validium-chunk:
@cargo test --release -p scroll-zkvm-integration --test chunk_circuit test_execute_validium -- --exact --nocapture

test-cycle:
@cargo test $(CARGO_CONFIG_FLAG) --release -p scroll-zkvm-integration --test chunk_circuit test_cycle -- --exact --nocapture

Expand All @@ -66,6 +81,9 @@ test-execute-batch-fast:
test-execute-bundle:
@cargo test $(CARGO_CONFIG_FLAG) --release -p scroll-zkvm-integration --test bundle_circuit test_execute -- --exact --nocapture

test-execute-validium-e2e:
@cargo test --release -p scroll-zkvm-integration --test bundle_circuit test_execute_validium -- --exact --nocapture

test-single-chunk:
@cargo test $(CARGO_CONFIG_FLAG) --release -p scroll-zkvm-integration --test chunk_circuit setup_prove_verify_single -- --exact --nocapture

Expand Down
2 changes: 1 addition & 1 deletion crates/build-guest/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -347,7 +347,7 @@ fn generate_openvm_assets(
env::set_current_dir(workspace_dir)?;

generate_root_verifier(workspace_dir, force_overwrite)?;
generate_evm_verifier(&release_output_dir.join("verifier"), true, force_overwrite)?;
generate_evm_verifier(&release_output_dir.join("verifier"), false, force_overwrite)?;
Ok(())
}

Expand Down
2 changes: 1 addition & 1 deletion crates/circuits/batch-circuit/batch_exe_commit.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#![cfg_attr(rustfmt, rustfmt_skip)]
//! Generated by crates/build-guest. DO NOT EDIT!

pub const COMMIT: [u32; 8] = [201161368, 1899692875, 57302023, 1414522389, 1405245774, 311196883, 1031375563, 825047078];
pub const COMMIT: [u32; 8] = [1950246364, 1636590102, 198747183, 721429575, 920539053, 838315603, 215973995, 453669913];
Loading