mirror of
https://github.com/saymrwulf/pasta_curves-source.git
synced 2026-09-05 20:10:32 +00:00
s/permutation::Proof::commit/permutation::Argument::commit
Once we refactor the permutation argument implementation to be integrated as Vec<permutation::Proof>, we can change this again to just map from the Vec<permutation::Argument> inside ConstraintSystem.
This commit is contained in:
parent
66240800a3
commit
7422efca72
2 changed files with 4 additions and 4 deletions
|
|
@ -1,7 +1,7 @@
|
||||||
use ff::Field;
|
use ff::Field;
|
||||||
use std::iter;
|
use std::iter;
|
||||||
|
|
||||||
use super::Proof;
|
use super::{Argument, Proof};
|
||||||
use crate::{
|
use crate::{
|
||||||
arithmetic::{eval_polynomial, parallelize, BatchInvert, Curve, CurveAffine, FieldExt},
|
arithmetic::{eval_polynomial, parallelize, BatchInvert, Curve, CurveAffine, FieldExt},
|
||||||
plonk::{ChallengeBeta, ChallengeGamma, ChallengeX, Error, ProvingKey},
|
plonk::{ChallengeBeta, ChallengeGamma, ChallengeX, Error, ProvingKey},
|
||||||
|
|
@ -35,8 +35,8 @@ pub(crate) struct Evaluated<C: CurveAffine> {
|
||||||
permutation_evals: Vec<Vec<C::Scalar>>,
|
permutation_evals: Vec<Vec<C::Scalar>>,
|
||||||
}
|
}
|
||||||
|
|
||||||
impl<C: CurveAffine> Proof<C> {
|
impl Argument {
|
||||||
pub(crate) fn commit<HBase: Hasher<C::Base>, HScalar: Hasher<C::Scalar>>(
|
pub(crate) fn commit<C: CurveAffine, HBase: Hasher<C::Base>, HScalar: Hasher<C::Scalar>>(
|
||||||
params: &Params<C>,
|
params: &Params<C>,
|
||||||
pk: &ProvingKey<C>,
|
pk: &ProvingKey<C>,
|
||||||
advice: &[Polynomial<C::Scalar, LagrangeCoeff>],
|
advice: &[Polynomial<C::Scalar, LagrangeCoeff>],
|
||||||
|
|
|
||||||
|
|
@ -176,7 +176,7 @@ impl<C: CurveAffine> Proof<C> {
|
||||||
|
|
||||||
// Commit to permutations, if any.
|
// Commit to permutations, if any.
|
||||||
let permutations = if !pk.vk.cs.permutations.is_empty() {
|
let permutations = if !pk.vk.cs.permutations.is_empty() {
|
||||||
Some(permutation::Proof::commit(
|
Some(permutation::Argument::commit(
|
||||||
params,
|
params,
|
||||||
pk,
|
pk,
|
||||||
&witness.advice,
|
&witness.advice,
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue