Use new circuit compression to store circuits #949
Labels
module:rusk-profile
Issues related to rusk-profile module
module:rusk-recovery
Issues related to rusk-recovery module
Summary
With the new version of plonk v0.14 comes the capability to store circuit descriptions in their compressed form before they are compiled. This compressed form is far smaller than the compiled keys which is current form of storing circuits.
This hopefully also fixes the circuit re-compiling issue in the CI when only the circuit dependencies changed. In case of an update in the dependencies, the circuit should be re-compiled but isn't. Currently the compilation has to be triggered manually by bumping the version as seen here.
Possible Solution
Circuit will get their identifiers by hashing their compressed descriptions plus the version of plonk they are using. When recovering a circuit, one needs to decompress it and then compile to get the prover and verifier keys.
With this we can also get rid of hard-coding the circuit-ids in the tests and in rusk-recovery:
rusk-recovery
to not depend on the circuits anymore, the circuit-description-files will be generated by the circuit crates themselvesThe text was updated successfully, but these errors were encountered: