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:
Jack Grigg 2020-12-01 14:16:31 +00:00
parent 66240800a3
commit 7422efca72
2 changed files with 4 additions and 4 deletions

View file

@ -1,7 +1,7 @@
use ff::Field;
use std::iter;
use super::Proof;
use super::{Argument, Proof};
use crate::{
arithmetic::{eval_polynomial, parallelize, BatchInvert, Curve, CurveAffine, FieldExt},
plonk::{ChallengeBeta, ChallengeGamma, ChallengeX, Error, ProvingKey},
@ -35,8 +35,8 @@ pub(crate) struct Evaluated<C: CurveAffine> {
permutation_evals: Vec<Vec<C::Scalar>>,
}
impl<C: CurveAffine> Proof<C> {
pub(crate) fn commit<HBase: Hasher<C::Base>, HScalar: Hasher<C::Scalar>>(
impl Argument {
pub(crate) fn commit<C: CurveAffine, HBase: Hasher<C::Base>, HScalar: Hasher<C::Scalar>>(
params: &Params<C>,
pk: &ProvingKey<C>,
advice: &[Polynomial<C::Scalar, LagrangeCoeff>],

View file

@ -176,7 +176,7 @@ impl<C: CurveAffine> Proof<C> {
// Commit to permutations, if any.
let permutations = if !pk.vk.cs.permutations.is_empty() {
Some(permutation::Proof::commit(
Some(permutation::Argument::commit(
params,
pk,
&witness.advice,