mirror of
https://github.com/arnaucube/sonobe.git
synced 2026-01-12 00:41:28 +01:00
Refactor Matrix vectors and Logical operation (#28)
* Refactor Matrix vectors operation * Refacotr NIFS logical operation
This commit is contained in:
@@ -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,
|
||||
|
||||
@@ -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> {
|
||||
|
||||
Reference in New Issue
Block a user