mirror of
https://github.com/saymrwulf/pasta_curves-source.git
synced 2026-09-04 20:03:39 +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 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>],
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Reference in a new issue