-
Notifications
You must be signed in to change notification settings - Fork 149
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This commit introduces `Compiler::encode` and `Compiler::decode`, two functions that will create a compressed representation of a circuit that can be used to generate prover and verifier keys. The compression strategy takes advantage of the fact that circuit representations are sparse; meaning, most of the scalars are zeroes. We also have a higher incidence of `1` and `-1`, so any value that is equivalent to a `i8` is compressed into a single byte, instead of the regular `32` bytes of a bls12-381. This will result in expressive gains in terms of storage. For instance, a `2^12` circuit can be compressed into roughly 100Kb.
- Loading branch information
Showing
22 changed files
with
1,526 additions
and
142 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.