-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
feat: FFLONK support for compressor #3359
Conversation
# Conflicts: # Cargo.lock # prover/Cargo.lock # zkstack_cli/crates/zkstack/src/commands/chain/init/configs.rs
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Overall looks fine. I reckon the latest changes on ZK Stack API will need a .sh
regen (I doubt it's a flaky test).
Then there's the follow-ups we discussed on this:
- speeding up the generation
- move compressor to the new processing interface
- make keystore use env var, rather than compilation flag
As soon as the CI passes, happy to re-review & approve.
circuit_encodings = "0.150.19" | ||
circuit_sequencer_api = "0.150.19" | ||
circuit_definitions = "0.150.19" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It is a bad idea to unlock the version. The latest version of crypto/protocol crates must be pinned to the last one; otherwise cargo update
can bump the version in lockfile automatically.
Pls return =
to all the crates where it was removed.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
cc @EmilLuta
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
+=1. My miss.
What ❔
Enables support of FFLONK compression
--flonk=true
flag to run compressor in FFLONK mode(or by runningzkstack prover run --component compressor --mode=fflonk
), default mode is still PLONKL1BatchProofForL1::Fflonk
orL1BatchProofForL1::Plonk
containing the proof insidecompression_mode
environment variable - FFLONK compressor can be run in 5 modes - 5th one is the most effective, so default value is 5.Why ❔
Checklist
zk fmt
andzk lint
.