Add external inputs logic to F function/circuit. Add an example of usage with external inputs too. (#78)

* Add external inputs logic to F function/circuit. Add an example of usage with external inputs too.

* Add examples run into CI
This commit is contained in:
2024-03-11 12:32:50 +01:00
committed by GitHub
parent 602a367411
commit a4905c8a06
10 changed files with 287 additions and 37 deletions

View File

@@ -96,7 +96,7 @@ impl<C: CurveGroup> LCCCS<C> {
w: &Witness<C::ScalarField>,
) -> Result<(), Error> {
// check that C is the commitment of w. Notice that this is not verifying a Pedersen
// opening, but checking that the Commmitment comes from committing to the witness.
// opening, but checking that the Commitment comes from committing to the witness.
if self.C != Pedersen::<C>::commit(pedersen_params, &w.w, &w.r_w)? {
return Err(Error::NotSatisfied);
}