Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Depends on #145.
This PR implements the onchain decider for Protogalaxy, which follows the design of Nova's decider described in Sonobe docs.
Specifically, the prover generates a Groth16 proof for the decider circuit and a KZG proof for the commitment$\phi$ in Protogalaxy's committed instance.
sonobe/folding-schemes/src/folding/protogalaxy/decider_eth.rs
Lines 160 to 171 in 6a8ccad
In addition, the randomness (i.e., the evaluations of
sonobe/folding-schemes/src/folding/protogalaxy/decider_eth.rs
Line 153 in 6a8ccad
sonobe/folding-schemes/src/folding/protogalaxy/decider_eth.rs
Lines 173 to 178 in 6a8ccad
Later, the verifier uses the randomness to compute the group operations in NIFS.V, i.e., the random linear combination of commitments in the running and incoming instances.
sonobe/folding-schemes/src/folding/protogalaxy/decider_eth.rs
Lines 201 to 207 in 6a8ccad
With the folded commitment
U_final_commitments
as a public input, the verifier checks the validity of Groth16 proof. The KZG proof is also verified againstU_final_commitments
.sonobe/folding-schemes/src/folding/protogalaxy/decider_eth.rs
Lines 209 to 237 in 6a8ccad
Note that the decider circuit already enforces that the randomness indeed consists of the evaluations of$L_i(X)$ , so the prover cannot cheat by providing the verifier with incorrect randomness.