mirror of
https://github.com/arnaucube/sonobe.git
synced 2026-01-08 15:01:30 +01:00
Add NIFSGadgetTrait, implement Mova's NIFSGadget, adapt Nova NIFSGadget into NIFSGadgetTrait (#173)
* add new NIFSGadgetTrait * implement Mova's NIFSGadget * refactor Nova NIFSGadget to fit into the new NIFSGadgetTrait * abstract NIFSGadget related tests for all implementors of NIFSGadgetTrait to avoid duplicated code in the tests between the different Nova variants gadget tests * frontends/noir update mimc usage since it has been migrated from noir's std into it's own repo
This commit is contained in:
@@ -137,9 +137,6 @@ contract NovaDecider is Groth16Verifier, KZG10Verifier {
|
||||
public_inputs[{{ z_len * 2 + 2 + num_limbs * 4 }} + 4 + k] = cmT_x_limbs[k];
|
||||
public_inputs[{{ z_len * 2 + 2 + num_limbs * 5 }} + 4 + k] = cmT_y_limbs[k];
|
||||
}
|
||||
|
||||
// last element of the groth16 proof's public inputs is `r`
|
||||
public_inputs[{{ public_inputs_len - 2 }}] = cmT_r[2];
|
||||
|
||||
bool success_g16 = this.verifyProof(pA, pB, pC, public_inputs);
|
||||
require(success_g16 == true, "Groth16: verifying proof failed");
|
||||
|
||||
Reference in New Issue
Block a user