Skip to content

Commit 14f355b

Browse files
committed
integrage libzkp into workspace
Signed-off-by: noelwei <[email protected]>
1 parent 4b91057 commit 14f355b

File tree

7 files changed

+35
-22
lines changed

7 files changed

+35
-22
lines changed

Cargo.lock

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

Cargo.toml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,13 @@ members = [
66
"common/types-rs/chunk",
77
"common/types-rs/batch",
88
"common/types-rs/bundle",
9+
"common/libzkp/impl",
910
"zkvm-prover/prover",
1011
"zkvm-prover/verifier",
1112
"zkvm-prover/integration",
1213
"zkvm-prover/bin",
1314
]
1415
exclude = [
15-
"common/libzkp/impl",
1616
"prover"
1717
]
1818

@@ -72,6 +72,8 @@ snark-verifier-sdk = { version = "0.2.0", default-features = false, features = [
7272
"halo2-axiom",
7373
"display",
7474
] }
75+
once_cell = "1.20"
76+
base64 = "0.22"
7577

7678
#TODO: upgrade
7779
vm-zstd = { git = "https://github.com/scroll-tech/rust-zstd-decompressor.git", tag = "v0.1.1" }

common/libzkp/impl/Cargo.toml

Lines changed: 8 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -7,25 +7,19 @@ edition = "2021"
77
[lib]
88
crate-type = ["cdylib"]
99

10-
[patch.crates-io]
11-
# patched add rkyv support & MSRV 1.77
12-
alloy-primitives = { git = "https://github.com/scroll-tech/alloy-core", branch = "v0.8.21" }
13-
ruint = { git = "https://github.com/scroll-tech/uint.git", branch = "v1.12.3" }
14-
tiny-keccak = { git = "https://github.com/scroll-tech/tiny-keccak", branch = "scroll-patch-v2.0.2-openvm-v1.0.0-rc.1" }
15-
1610
[dependencies]
17-
euclid_prover = { git = "https://github.com/scroll-tech/zkvm-prover.git", tag = "v0.3.0", package = "scroll-zkvm-prover" }
18-
euclid_verifier = { git = "https://github.com/scroll-tech/zkvm-prover.git", tag = "v0.3.0", package = "scroll-zkvm-verifier" }
11+
scroll-zkvm-prover.workspace = true
12+
scroll-zkvm-verifier.workspace = true
1913

20-
base64 = "0.13.0"
21-
env_logger = "0.9.0"
14+
env_logger = "0.11.0"
2215
libc = "0.2"
2316
log = "0.4"
24-
once_cell = "1.19"
25-
serde = "1.0"
17+
base64.workspace = true
18+
once_cell.workspace = true
19+
serde.workspace = true
2620
serde_derive = "1.0"
27-
serde_json = "1.0.66"
28-
anyhow = "1.0.86"
21+
serde_json.workspace = true
22+
anyhow = "1"
2923

3024
[profile.test]
3125
opt-level = 3

common/libzkp/impl/src/verifier/euclid.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ use super::{ProofVerifier, TaskType, VKDump};
33
use anyhow::Result;
44

55
use crate::utils::panic_catch;
6-
use euclid_prover::{BatchProof, BundleProof, ChunkProof};
7-
use euclid_verifier::verifier::{BatchVerifier, BundleVerifierEuclidV1, ChunkVerifier};
6+
use scroll_zkvm_prover::{BatchProof, BundleProof, ChunkProof};
7+
use scroll_zkvm_verifier::verifier::{BatchVerifier, BundleVerifierEuclidV1, ChunkVerifier};
88
use std::{fs::File, path::Path};
99

1010
pub struct EuclidVerifier {

common/libzkp/impl/src/verifier/euclidv2.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ use super::{ProofVerifier, TaskType, VKDump};
33
use anyhow::Result;
44

55
use crate::utils::panic_catch;
6-
use euclid_prover::{BatchProof, BundleProof, ChunkProof};
7-
use euclid_verifier::verifier::{BatchVerifier, BundleVerifierEuclidV2, ChunkVerifier};
6+
use scroll_zkvm_prover::{BatchProof, BundleProof, ChunkProof};
7+
use scroll_zkvm_verifier::verifier::{BatchVerifier, BundleVerifierEuclidV2, ChunkVerifier};
88
use std::{fs::File, path::Path};
99

1010
pub struct EuclidV2Verifier {

zkvm-prover/integration/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,12 +25,12 @@ eyre.workspace = true
2525
serde_json.workspace = true
2626
tiny-keccak.workspace = true
2727
vm-zstd = { workspace = true, features = ["zstd"] }
28+
once_cell.workspace = true
2829

2930
rayon = "1"
3031
chrono = "0.4"
3132
#ff = "0.13"
3233
glob = "0.3"
33-
once_cell = "1.20"
3434
#sha2 = "0.10"
3535
tracing-subscriber = "0.3"
3636

zkvm-prover/prover/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,11 +28,11 @@ openvm-native-recursion = { workspace = true }
2828
openvm-sdk = { workspace = true }
2929
openvm-stark-sdk = { workspace = true, default-features = false }
3030

31-
base64 = "0.22"
31+
once_cell.workspace = true
32+
base64.workspace = true
3233
git-version = "0.3.5"
3334
hex = "0.4"
3435
munge = "=0.4.1"
35-
once_cell = "1.20"
3636
serde_stacker = "0.1"
3737
thiserror = "2.0"
3838
toml = "0.8"

0 commit comments

Comments
 (0)