Refactor Matrix vectors and Logical operation (#28)

* Refactor Matrix vectors operation

* Refacotr NIFS logical operation
This commit is contained in:
ashWhiteHat
2023-10-10 20:48:33 +09:00
committed by GitHub
parent 13e471aeaf
commit 9a2a1fdd13
4 changed files with 20 additions and 52 deletions

View File

@@ -91,6 +91,7 @@ impl<C: CurveGroup> CCS<C> {
M: vec![r1cs.A, r1cs.B, r1cs.C],
}
}
pub fn to_r1cs(self) -> R1CS<C::ScalarField> {
R1CS::<C::ScalarField> {
l: self.l,

View File

@@ -53,6 +53,7 @@ pub struct RelaxedR1CS<F: PrimeField> {
pub u: F,
pub E: Vec<F>,
}
impl<F: PrimeField> RelaxedR1CS<F> {
/// check that a RelaxedR1CS structure is satisfied by a z vector. Only for testing.
pub fn check_relation(&self, z: &[F]) -> Result<(), Error> {