mirror of
https://github.com/arnaucube/Nova.git
synced 2026-01-11 16:41:28 +01:00
Rename Prover and ProvingAssignment.
This commit is contained in:
committed by
Srinath Setty
parent
3b668e7ac6
commit
efb73ef325
@@ -2,6 +2,6 @@
|
|||||||
//!
|
//!
|
||||||
//! [Bellperson]: https://github.com/filecoin-project/bellperson
|
//! [Bellperson]: https://github.com/filecoin-project/bellperson
|
||||||
|
|
||||||
pub mod prover;
|
|
||||||
pub mod r1cs;
|
pub mod r1cs;
|
||||||
pub mod shape_cs;
|
pub mod shape_cs;
|
||||||
|
pub mod solver;
|
||||||
|
|||||||
@@ -2,8 +2,8 @@
|
|||||||
|
|
||||||
#![allow(non_snake_case)]
|
#![allow(non_snake_case)]
|
||||||
|
|
||||||
use super::prover::ProvingAssignment;
|
|
||||||
use super::shape_cs::ShapeCS;
|
use super::shape_cs::ShapeCS;
|
||||||
|
use super::solver::SatisfyingAssignment;
|
||||||
use bellperson::{Index, LinearCombination};
|
use bellperson::{Index, LinearCombination};
|
||||||
|
|
||||||
use ff::PrimeField;
|
use ff::PrimeField;
|
||||||
@@ -32,7 +32,7 @@ pub trait NovaShape<G: Group> {
|
|||||||
fn r1cs_gens(&self) -> R1CSGens<G>;
|
fn r1cs_gens(&self) -> R1CSGens<G>;
|
||||||
}
|
}
|
||||||
|
|
||||||
impl<G: Group> NovaWitness<G> for ProvingAssignment<G>
|
impl<G: Group> NovaWitness<G> for SatisfyingAssignment<G>
|
||||||
where
|
where
|
||||||
G::Scalar: PrimeField,
|
G::Scalar: PrimeField,
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -8,7 +8,7 @@ use bellperson::{
|
|||||||
};
|
};
|
||||||
|
|
||||||
/// A `ConstraintSystem` which calculates witness values for a concrete instance of an R1CS circuit.
|
/// A `ConstraintSystem` which calculates witness values for a concrete instance of an R1CS circuit.
|
||||||
pub struct ProvingAssignment<G: Group>
|
pub struct SatisfyingAssignment<G: Group>
|
||||||
where
|
where
|
||||||
G::Scalar: PrimeField,
|
G::Scalar: PrimeField,
|
||||||
{
|
{
|
||||||
@@ -28,13 +28,13 @@ where
|
|||||||
}
|
}
|
||||||
use std::fmt;
|
use std::fmt;
|
||||||
|
|
||||||
impl<G: Group> fmt::Debug for ProvingAssignment<G>
|
impl<G: Group> fmt::Debug for SatisfyingAssignment<G>
|
||||||
where
|
where
|
||||||
G::Scalar: PrimeField,
|
G::Scalar: PrimeField,
|
||||||
{
|
{
|
||||||
fn fmt(&self, fmt: &mut fmt::Formatter) -> fmt::Result {
|
fn fmt(&self, fmt: &mut fmt::Formatter) -> fmt::Result {
|
||||||
fmt
|
fmt
|
||||||
.debug_struct("ProvingAssignment")
|
.debug_struct("SatisfyingAssignment")
|
||||||
.field("a_aux_density", &self.a_aux_density)
|
.field("a_aux_density", &self.a_aux_density)
|
||||||
.field("b_input_density", &self.b_input_density)
|
.field("b_input_density", &self.b_input_density)
|
||||||
.field("b_aux_density", &self.b_aux_density)
|
.field("b_aux_density", &self.b_aux_density)
|
||||||
@@ -68,11 +68,11 @@ where
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
impl<G: Group> PartialEq for ProvingAssignment<G>
|
impl<G: Group> PartialEq for SatisfyingAssignment<G>
|
||||||
where
|
where
|
||||||
G::Scalar: PrimeField,
|
G::Scalar: PrimeField,
|
||||||
{
|
{
|
||||||
fn eq(&self, other: &ProvingAssignment<G>) -> bool {
|
fn eq(&self, other: &SatisfyingAssignment<G>) -> bool {
|
||||||
self.a_aux_density == other.a_aux_density
|
self.a_aux_density == other.a_aux_density
|
||||||
&& self.b_input_density == other.b_input_density
|
&& self.b_input_density == other.b_input_density
|
||||||
&& self.b_aux_density == other.b_aux_density
|
&& self.b_aux_density == other.b_aux_density
|
||||||
@@ -84,7 +84,7 @@ where
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
impl<G: Group> ConstraintSystem<G::Scalar> for ProvingAssignment<G>
|
impl<G: Group> ConstraintSystem<G::Scalar> for SatisfyingAssignment<G>
|
||||||
where
|
where
|
||||||
G::Scalar: PrimeField,
|
G::Scalar: PrimeField,
|
||||||
{
|
{
|
||||||
Reference in New Issue
Block a user