mirror of
https://github.com/arnaucube/Nova.git
synced 2026-01-11 08:31:29 +01:00
Derive more traits. (#7)
Co-authored-by: porcuquine <porcuquine@users.noreply.github.com>
This commit is contained in:
@@ -7,13 +7,14 @@ use itertools::concat;
|
|||||||
use rayon::prelude::*;
|
use rayon::prelude::*;
|
||||||
|
|
||||||
/// Public parameters for a given R1CS
|
/// Public parameters for a given R1CS
|
||||||
|
#[derive(Debug)]
|
||||||
pub struct R1CSGens<G: Group> {
|
pub struct R1CSGens<G: Group> {
|
||||||
gens_W: CommitGens<G>,
|
gens_W: CommitGens<G>,
|
||||||
gens_E: CommitGens<G>,
|
gens_E: CommitGens<G>,
|
||||||
}
|
}
|
||||||
|
|
||||||
/// A type that holds the shape of the R1CS matrices
|
/// A type that holds the shape of the R1CS matrices
|
||||||
#[derive(Debug)]
|
#[derive(Clone, Debug, PartialEq, Eq)]
|
||||||
pub struct R1CSShape<G: Group> {
|
pub struct R1CSShape<G: Group> {
|
||||||
num_cons: usize,
|
num_cons: usize,
|
||||||
num_vars: usize,
|
num_vars: usize,
|
||||||
@@ -24,7 +25,7 @@ pub struct R1CSShape<G: Group> {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/// A type that holds a witness for a given R1CS instance
|
/// A type that holds a witness for a given R1CS instance
|
||||||
#[derive(Clone, Debug)]
|
#[derive(Clone, Debug, PartialEq, Eq)]
|
||||||
pub struct R1CSWitness<G: Group> {
|
pub struct R1CSWitness<G: Group> {
|
||||||
W: Vec<G::Scalar>,
|
W: Vec<G::Scalar>,
|
||||||
}
|
}
|
||||||
@@ -37,7 +38,7 @@ pub struct R1CSInstance<G: Group> {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/// A type that holds a witness for a given Relaxed R1CS instance
|
/// A type that holds a witness for a given Relaxed R1CS instance
|
||||||
#[derive(Clone, Debug)]
|
#[derive(Clone, Debug, PartialEq, Eq)]
|
||||||
pub struct RelaxedR1CSWitness<G: Group> {
|
pub struct RelaxedR1CSWitness<G: Group> {
|
||||||
W: Vec<G::Scalar>,
|
W: Vec<G::Scalar>,
|
||||||
E: Vec<G::Scalar>,
|
E: Vec<G::Scalar>,
|
||||||
|
|||||||
Reference in New Issue
Block a user