mirror of
https://github.com/saymrwulf/pasta_curves-source.git
synced 2026-09-03 19:53:40 +00:00
Pass aux_lagrange_polys to prover as a slice
This commit is contained in:
parent
fd094fccd8
commit
c772801f8f
2 changed files with 6 additions and 3 deletions
|
|
@ -449,7 +449,7 @@ fn test_proving() {
|
|||
¶ms,
|
||||
&srs,
|
||||
&circuit,
|
||||
aux_lagrange_polys.clone(),
|
||||
&aux_lagrange_polys.clone(),
|
||||
)
|
||||
.expect("proof generation should not fail");
|
||||
|
||||
|
|
|
|||
|
|
@ -24,7 +24,7 @@ impl<C: CurveAffine> Proof<C> {
|
|||
params: &Params<C>,
|
||||
srs: &SRS<C>,
|
||||
circuit: &ConcreteCircuit,
|
||||
aux_lagrange_polys: Vec<Polynomial<C::Scalar, LagrangeCoeff>>,
|
||||
aux_lagrange_polys: &[Polynomial<C::Scalar, LagrangeCoeff>],
|
||||
) -> Result<Self, Error> {
|
||||
struct WitnessCollection<F: Field> {
|
||||
advice: Vec<Polynomial<F, LagrangeCoeff>>,
|
||||
|
|
@ -143,7 +143,10 @@ impl<C: CurveAffine> Proof<C> {
|
|||
let aux_polys: Vec<_> = aux_lagrange_polys
|
||||
.clone()
|
||||
.into_iter()
|
||||
.map(|poly| domain.lagrange_to_coeff(poly))
|
||||
.map(|poly| {
|
||||
let lagrange_vec = domain.lagrange_from_vec(poly.to_vec());
|
||||
domain.lagrange_to_coeff(lagrange_vec)
|
||||
})
|
||||
.collect();
|
||||
|
||||
let aux_cosets: Vec<_> = meta
|
||||
|
|
|
|||
Loading…
Reference in a new issue