Skip to content

Commit 41196f5

Browse files
yiweichigeorgehaoThegaramomerfirmak
authored
feat: support local prover && multiple task types (#54)
Co-authored-by: georgehao <[email protected]> Co-authored-by: Péter Garamvölgyi <[email protected]> Co-authored-by: Ömer Faruk Irmak <[email protected]>
1 parent a623cd6 commit 41196f5

File tree

19 files changed

+417
-258
lines changed

19 files changed

+417
-258
lines changed

.DS_Store

-6 KB
Binary file not shown.

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,3 +27,5 @@ db/
2727
*.lock
2828
*.tgz
2929
.vscode/
30+
31+
.DS_Store

Cargo.lock

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

Cargo.toml

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -16,34 +16,24 @@ bls12_381 = { git = "https://github.com/scroll-tech/bls12_381", branch = "feat/i
1616
[dependencies]
1717
anyhow = "1.0"
1818
log = "0.4"
19-
env_logger = "0.11.3"
2019
serde = { version = "1.0.198", features = ["derive"] }
2120
serde_json = "1.0.116"
22-
futures = "0.3.30"
2321
ethers-core = { git = "https://github.com/scroll-tech/ethers-rs.git", branch = "v2.0.7" }
2422
ethers-providers = { git = "https://github.com/scroll-tech/ethers-rs.git", branch = "v2.0.7" }
25-
halo2_proofs = { git = "https://github.com/scroll-tech/halo2.git", branch = "v1.1" }
26-
snark-verifier-sdk = { git = "https://github.com/scroll-tech/snark-verifier", branch = "develop", default-features = false, features = ["loader_halo2", "loader_evm", "halo2-pse"] }
27-
# prover_darwin = { git = "https://github.com/scroll-tech/zkevm-circuits.git", tag = "v0.12.2", package = "prover", default-features = false, features = ["parallel_syn", "scroll"] }
2823
prover_darwin_v2 = { git = "https://github.com/scroll-tech/zkevm-circuits.git", tag = "v0.13.1", package = "prover", default-features = false, features = ["parallel_syn", "scroll"] }
29-
base64 = "0.13.1"
3024
reqwest = { version = "0.12.4", features = ["gzip"] }
3125
reqwest-middleware = "0.3"
3226
reqwest-retry = "0.5"
33-
once_cell = "1.19.0"
3427
hex = "0.4.3"
3528
tiny-keccak = { version = "2.0.0", features = ["sha3", "keccak"] }
3629
rand = "0.8.5"
37-
eth-keystore = "0.5.0"
3830
rlp = "0.5.2"
3931
tokio = { version = "1.37.0", features = ["full"] }
4032
async-trait = "0.1"
41-
sled = "0.34.7"
4233
http = "1.1.0"
4334
clap = { version = "4.5", features = ["derive"] }
44-
ctor = "0.2.8"
4535
tracing = "0.1.40"
4636
tracing-subscriber = { version = "0.3.18", features = ["env-filter"] }
4737
axum = "0.6.0"
4838
dotenv = "0.15"
49-
rocksdb = "0.20"
39+
rocksdb = "0.23.0"

conf/config.json

Lines changed: 34 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,38 @@
11
{
2-
"prover_name_prefix": "cloud_prover_",
3-
"keys_dir": "keys",
4-
"coordinator": {
5-
"base_url": "https://coordinator-api.scrollsdk",
6-
"retry_count": 3,
7-
"retry_wait_time_sec": 5,
8-
"connection_timeout_sec": 60
9-
},
10-
"l2geth": {
11-
"endpoint": "https://l2-rpc.scrollsdk"
12-
},
13-
"prover": {
14-
"circuit_type": 3,
15-
"circuit_version": "v0.13.1",
16-
"n_workers": 1,
17-
"cloud": {
18-
"base_url": "<CLOUD_PROVING_SERVICE_BASE_URL>",
19-
"api_key": "<API_KEY>",
2+
"prover_name_prefix": "prover_name",
3+
"keys_dir": "keys",
4+
"coordinator": {
5+
"base_url": "https://coordinator-api.scrollsdk",
206
"retry_count": 3,
217
"retry_wait_time_sec": 5,
228
"connection_timeout_sec": 60
23-
}
24-
},
25-
"db_path": "db"
26-
}
9+
},
10+
"l2geth": {
11+
"endpoint": "https://l2-rpc.scrollsdk"
12+
},
13+
"prover": {
14+
"circuit_type": [1,2,3],
15+
"circuit_version": "v0.13.1",
16+
"cloud": {
17+
"base_url": "<CLOUD_PROVING_SERVICE_BASE_URL>",
18+
"api_key": "<API_KEY>",
19+
"retry_count": 3,
20+
"retry_wait_time_sec": 5,
21+
"connection_timeout_sec": 60
22+
},
23+
"local": {
24+
"low_version_circuit": {
25+
"hard_fork_name": "bernoulli",
26+
"params_path": "params",
27+
"assets_path": "assets"
28+
},
29+
"high_version_circuit": {
30+
"hard_fork_name": "curie",
31+
"params_path": "params",
32+
"assets_path": "assets"
33+
}
34+
}
35+
},
36+
"db_path": "db"
37+
}
38+

0 commit comments

Comments
 (0)