use crate::pedersen; use ark_ff::fields::PrimeField; use core::ops::Add; // this file contains an abstraction of R1CS struct, to later be plugged from arkworks // ConstraintSystem or something similar. pub struct R1CS { pub A: Vec>, pub B: Vec>, pub C: Vec>, } pub struct RelaxedR1CS { pub ABC: R1CS, pub u: F, pub E: F, } impl R1CS { pub fn relax(self) -> RelaxedR1CS { RelaxedR1CS:: { ABC: self, u: F::one(), E: F::zero(), } } } impl RelaxedR1CS { pub fn fold(self, other: Self, r: F) -> Self { unimplemented!(); } }