Skip to content
Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
Show all changes
26 commits
Select commit Hold shift + click to select a range
221599b
update dep and renaming modules
noel2004 Aug 6, 2025
8970299
refactor for dynamic loading
noel2004 Aug 8, 2025
8e8da95
dynamic asset loading
noel2004 Aug 8, 2025
8607162
fmt
noel2004 Aug 8, 2025
52db8ad
fix base64 issue for url safe
noel2004 Aug 9, 2025
6fc583f
Merge remote-tracking branch 'origin/develop' into feat/dyn_asset_loa…
noel2004 Aug 18, 2025
617271a
update zkvm-prover dep and fix
noel2004 Aug 18, 2025
e4bd639
remove "dump" util, fmt and clippy
noel2004 Aug 18, 2025
47bcca3
purge deprecated entry
noel2004 Aug 18, 2025
072475a
update gpu build lock
noel2004 Aug 18, 2025
e325b82
fixings for updating vk to hexstring
noel2004 Aug 19, 2025
c681446
lint
noel2004 Aug 19, 2025
8ef21f0
update according to reviews
noel2004 Aug 22, 2025
a75f857
purge out-dated comment
noel2004 Aug 22, 2025
7999f0d
update gpu for 0.5.6
noel2004 Aug 22, 2025
77d8b5b
fix issue in config template
noel2004 Aug 22, 2025
ab86d33
Merge remote-tracking branch 'origin/develop' into feat/dyn_asset_loa…
noel2004 Aug 25, 2025
65fa249
bump dep of zkvm-prover
noel2004 Aug 25, 2025
2afa27d
new metrics for proof stat
noel2004 Aug 25, 2025
6a9a34b
update metrics
noel2004 Aug 26, 2025
710e38e
Merge remote-tracking branch 'origin/develop' into feat/dyn_asset_loa…
noel2004 Aug 26, 2025
3cbd07c
one line command to setup coordinator configurations
noel2004 Aug 26, 2025
8593bb2
Merge branch 'feat/prover_metric' into feat/dyn_asset_loading
noel2004 Aug 27, 2025
ce7dcaf
Fix hardfork min version check
noel2004 Aug 27, 2025
6f60a8d
fix according to AI review
noel2004 Aug 27, 2025
e1286da
Revert config.json
noel2004 Aug 28, 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
33 changes: 26 additions & 7 deletions Cargo.lock

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

6 changes: 3 additions & 3 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@ repository = "https://github.com/scroll-tech/scroll"
version = "4.5.8"

[workspace.dependencies]
scroll-zkvm-prover-euclid = { git = "https://github.com/scroll-tech/zkvm-prover", branch = "feat/0.5.1", package = "scroll-zkvm-prover" }
scroll-zkvm-verifier-euclid = { git = "https://github.com/scroll-tech/zkvm-prover", branch = "feat/0.5.1", package = "scroll-zkvm-verifier" }
scroll-zkvm-types = { git = "https://github.com/scroll-tech/zkvm-prover", branch = "feat/0.5.1" }
scroll-zkvm-prover = { git = "https://github.com/scroll-tech/zkvm-prover", rev = "2ec1303" }
scroll-zkvm-verifier = { git = "https://github.com/scroll-tech/zkvm-prover", rev = "2ec1303" }
scroll-zkvm-types = { git = "https://github.com/scroll-tech/zkvm-prover", rev = "2ec1303" }

sbv-primitives = { git = "https://github.com/scroll-tech/stateless-block-verifier", branch = "chore/openvm-1.3", features = ["scroll"] }
sbv-utils = { git = "https://github.com/scroll-tech/stateless-block-verifier", branch = "chore/openvm-1.3" }
Expand Down
2 changes: 1 addition & 1 deletion crates/libzkp/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ edition.workspace = true
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[dependencies]
scroll-zkvm-types.workspace = true
scroll-zkvm-verifier-euclid.workspace = true
scroll-zkvm-verifier.workspace = true

alloy-primitives.workspace = true #depress the effect of "native-keccak"
sbv-primitives = {workspace = true, features = ["scroll-compress-ratio", "scroll"]}
Expand Down
2 changes: 1 addition & 1 deletion crates/libzkp/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ pub use verifier::{TaskType, VerifierConfig};
mod utils;

use sbv_primitives::B256;
use scroll_zkvm_types::util::vec_as_base64;
use scroll_zkvm_types::utils::vec_as_base64;
use serde::{Deserialize, Serialize};
use serde_json::value::RawValue;
use std::path::Path;
Expand Down
2 changes: 1 addition & 1 deletion crates/libzkp/src/proofs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ use scroll_zkvm_types::{
proof::{EvmProof, OpenVmEvmProof, ProofEnum, RootProof},
public_inputs::{ForkName, MultiVersionPublicInputs},
types_agg::{AggregationInput, ProgramCommitment},
util::vec_as_base64,
utils::vec_as_base64,
};
use serde::{de::DeserializeOwned, Deserialize, Serialize};

Expand Down
2 changes: 1 addition & 1 deletion crates/libzkp/src/tasks/batch/utils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ pub mod base64 {
pub mod point_eval {
use c_kzg;
use sbv_primitives::{types::eips::eip4844::BLS_MODULUS, B256 as H256, U256};
use scroll_zkvm_types::util::sha256_rv32;
use scroll_zkvm_types::utils::sha256_rv32;

/// Given the blob-envelope, translate it to a fixed size EIP-4844 blob.
///
Expand Down
6 changes: 3 additions & 3 deletions crates/libzkp/src/verifier.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#![allow(static_mut_refs)]

mod euclidv2;
use euclidv2::EuclidV2Verifier;
mod universal;
use universal::Verifier;
use eyre::Result;
use serde::{Deserialize, Serialize};
use std::{
Expand Down Expand Up @@ -61,7 +61,7 @@ pub fn init(config: VerifierConfig) {
for cfg in &config.circuits {
let canonical_fork_name = cfg.fork_name.to_lowercase();

let verifier = EuclidV2Verifier::new(&cfg.assets_path, canonical_fork_name.as_str().into());
let verifier = Verifier::new(&cfg.assets_path, canonical_fork_name.as_str().into());
let ret = verifiers.insert(canonical_fork_name, Arc::new(Mutex::new(verifier)));
assert!(
ret.is_none(),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,15 @@ use crate::{
utils::panic_catch,
};
use scroll_zkvm_types::public_inputs::ForkName;
use scroll_zkvm_verifier_euclid::verifier::UniversalVerifier;
use scroll_zkvm_verifier::verifier::UniversalVerifier;
use std::path::Path;

pub struct EuclidV2Verifier {
pub struct Verifier {
verifier: UniversalVerifier,
fork: ForkName,
}

impl EuclidV2Verifier {
impl Verifier {
pub fn new(assets_dir: &str, fork: ForkName) -> Self {
let verifier_bin = Path::new(assets_dir).join("verifier.bin");
let config = Path::new(assets_dir).join("root-verifier-vm-config");
Expand All @@ -29,7 +29,7 @@ impl EuclidV2Verifier {
}
}

impl ProofVerifier for EuclidV2Verifier {
impl ProofVerifier for Verifier {
fn verify(&self, task_type: super::TaskType, proof: &[u8]) -> Result<bool> {
panic_catch(|| match task_type {
TaskType::Chunk => {
Expand Down
7 changes: 4 additions & 3 deletions crates/prover-bin/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ edition.workspace = true

[dependencies]
scroll-zkvm-types.workspace = true
scroll-zkvm-prover-euclid.workspace = true
scroll-zkvm-prover.workspace = true
scroll-proving-sdk = { git = "https://github.com/scroll-tech/scroll-proving-sdk.git", branch = "refactor/scroll" }
serde.workspace = true
serde_json.workspace = true
Expand All @@ -17,8 +17,9 @@ tiny-keccak = { workspace = true, features = ["sha3", "keccak"] }
eyre.workspace = true

futures = "0.3.30"
futures-util = "0.3"

reqwest = { version = "0.12.4", features = ["gzip"] }
reqwest = { version = "0.12.4", features = ["gzip", "stream"] }
reqwest-middleware = "0.3"
reqwest-retry = "0.5"
hex = "0.4.3"
Expand All @@ -30,5 +31,5 @@ sled = "0.34.7"
http = "1.1.0"
clap = { version = "4.5", features = ["derive"] }
ctor = "0.2.8"
url = "2.5.4"
url = { version = "2.5.4", features = ["serde",] }
serde_bytes = "0.11.15"
Loading