Skip to content

updated wrapper to 0.2.0 #28

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jun 24, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
12 changes: 6 additions & 6 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -34,12 +34,12 @@ snark_wrapper = { git = "https://github.com/matter-labs/zksync-crypto.git", pack
# snark_wrapper = { path = "../zksync-crypto/crates/snark-wrapper"}


risc_verifier = {git="https://github.com/matter-labs/zksync-airbender.git", package="final_reduced_risc_v_machine_verifier", features=["proof_utils"], tag="0.0.5"}
execution_utils = {git="https://github.com/matter-labs/zksync-airbender.git", package="execution_utils", tag="0.0.5"}
setups = {git="https://github.com/matter-labs/zksync-airbender.git", package="setups", tag="0.0.5"}
mersenne_field = {git="https://github.com/matter-labs/zksync-airbender.git", package="field", tag="0.0.5"}
zkos_verifier_generator = {git="https://github.com/matter-labs/zksync-airbender.git", package="verifier_generator", tag="0.0.5"}
prover = {git="https://github.com/matter-labs/zksync-airbender.git", package="prover", tag="0.0.5"}
risc_verifier = {git="https://github.com/matter-labs/zksync-airbender.git", package="final_reduced_risc_v_machine_verifier", features=["proof_utils"], tag="0.2.0"}
execution_utils = {git="https://github.com/matter-labs/zksync-airbender.git", package="execution_utils", tag="0.2.0"}
setups = {git="https://github.com/matter-labs/zksync-airbender.git", package="setups", tag="0.2.0"}
mersenne_field = {git="https://github.com/matter-labs/zksync-airbender.git", package="field", tag="0.2.0"}
zkos_verifier_generator = {git="https://github.com/matter-labs/zksync-airbender.git", package="verifier_generator", tag="0.2.0"}
prover = {git="https://github.com/matter-labs/zksync-airbender.git", package="prover", tag="0.2.0"}

# risc_verifier = {path="../air_compiler/circuit_defs/final_reduced_risc_v_machine/verifier", package="final_reduced_risc_v_machine_verifier", features=["proof_utils"]}
# execution_utils = {path="../air_compiler/execution_utils"}
Expand Down
20 changes: 19 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,22 @@ at your option.

### Contribution

See [CONTRIBUTING.md](./CONTRIBUTING.md).
See [CONTRIBUTING.md](./CONTRIBUTING.md).


### Updating airbender version


If you want to update the airbender dependency, please do these additional steps:
* update Cargo.toml
* re-generate quotients - this can be done by running wrapper_generator: `cargo run --release --bin wrapper_generator`
* update test inputs: from the corresponding air-bender branch:

```shell
# From zksync-airbender directory
cargo run -p cli --release prove --bin examples/hashed_fibonacci/app.bin --input-file examples/hashed_fibonacci/input.txt --until final-proof --output-dir /tmp/update

# From zkos-wrapper directory.
cp /tmp/update/final_program_proof.json wrapper/testing_data/risc_proof
RUST_MIN_STACK=67108864 cargo test all_layers_full_test --release -- --nocapture
```
2,855 changes: 1,319 additions & 1,536 deletions wrapper/src/wrapper_inner_verifier/imports/circuit_layout.rs

Large diffs are not rendered by default.

3,235 changes: 1,467 additions & 1,768 deletions wrapper/src/wrapper_inner_verifier/imports/circuit_quotient.rs

Large diffs are not rendered by default.

32 changes: 16 additions & 16 deletions wrapper/src/wrapper_inner_verifier/imports/final_state_constants.rs
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
pub(crate) const FINAL_RISC_CIRCUIT_END_PARAMS: [u32; 8usize] = [
2586816750u32,
1756482444u32,
2217339332u32,
3005136617u32,
2913066018u32,
4166213675u32,
3558549238u32,
4123692041u32,
4250250141u32,
1573178321u32,
1385045928u32,
2825549767u32,
443732210u32,
3784997290u32,
3165410519u32,
1422234642u32,
];
pub(crate) const FINAL_RISC_CIRCUIT_AUX_REGISTERS_VALUES: [u32; 8usize] = [
3855435084u32,
2553247074u32,
2421719871u32,
1449244899u32,
4239845664u32,
2609063432u32,
767403438u32,
3072000801u32,
3319270263u32,
3838849625u32,
1056405408u32,
1626804972u32,
2760183814u32,
3536360140u32,
1370831390u32,
2079486643u32,
];
Loading
Loading