Skip to content

Commit 9875a1f

Browse files
mm-zkolesHolem
andauthored
Merging Oles changes that add compression and snark generation (#7)
Co-authored-by: olesHolem <[email protected]>
1 parent 763dd80 commit 9875a1f

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

49 files changed

+341924
-121141
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,4 +22,4 @@ jobs:
2222
run: cargo build --verbose
2323
- name: tests
2424
# We need to increase the stack size for the tests (due to quotient computation)
25-
run: RUST_MIN_STACK=67108864 cargo test --release -- --nocapture
25+
run: RUST_MIN_STACK=67108864 cargo test --release -- --nocapture --test-threads=1

Cargo.toml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,13 @@ path = "src/main.rs"
1515
[dependencies]
1616
boojum = { git = "https://github.com/matter-labs/zksync-crypto.git", package="boojum", branch = "oh_mersenne_field" }
1717
# boojum = { path = "../zksync-crypto/crates/boojum"}
18-
zkos_verifier = {git="https://github.com/matter-labs/air_compiler.git", package="verifier", branch="oh_for_zkos_wrapper", features=["proof_utils"]}
19-
# zkos_verifier = {path="../air_compiler/verifier", package="verifier", features=["proof_utils"]}
18+
bellman = { git = "https://github.com/matter-labs/zksync-crypto.git", package="zksync_bellman", branch = "oh_mersenne_field" }
19+
rescue_poseidon = { git = "https://github.com/matter-labs/zksync-crypto.git", package="rescue_poseidon", branch = "oh_mersenne_field" }
20+
# rescue_poseidon = { path = "../zksync-crypto/crates/rescue-poseidon"}
21+
snark_wrapper = { git = "https://github.com/matter-labs/zksync-crypto.git", package="snark_wrapper", branch = "oh_mersenne_field" }
22+
# snark_wrapper = { path = "../zksync-crypto/crates/snark-wrapper"}
23+
risc_verifier = {git="https://github.com/matter-labs/air_compiler.git", package="reduced_machine_for_wrapper_verifier", features=["proof_utils"], branch="oh_for_zkos_wrapper"}
24+
# risc_verifier = {path="../air_compiler/circuit_defs/reduced_machine_for_wrapper/verifier", package="reduced_machine_for_wrapper_verifier", features=["proof_utils"]}
2025
serde_json = { version = "*" }
2126
serde = { version = "1", default-features = false, features = ["derive", "alloc"]}
2227
clap = { version = "4.5.21", features = ["derive"] }

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@ Library for verifying zkos with boojum
33

44
It takes the zkos proof (in json format), and returns the boojum proof.
55

6-
Currently working only on the zkos delegation proofs.
6+
Currently it also requires you to provide the file with final register inputs.
77

88
You can use it as a library, or as a cli tool:
99

1010
```
11-
cargo run --release -- --input delegation_proof --output boojum_proof.json
11+
cargo run --release -- --input testing_data/risc_proof --registers-input testing_data/register_final_values --output tmp.json
1212
```

0 commit comments

Comments
 (0)