mirror of
https://github.com/saymrwulf/pasta_curves-source.git
synced 2026-09-06 20:20:34 +00:00
Auxilary wires in PLONK are foux blinded just like fixed wires.
This commit is contained in:
parent
316a027784
commit
56b6d8bd03
2 changed files with 3 additions and 3 deletions
|
|
@ -375,7 +375,7 @@ fn test_proving() {
|
||||||
pubinputs[0] = Fp::one();
|
pubinputs[0] = Fp::one();
|
||||||
pubinputs[0] += Fp::one();
|
pubinputs[0] += Fp::one();
|
||||||
let pubinput = params
|
let pubinput = params
|
||||||
.commit_lagrange(&pubinputs, Blind(Field::zero()))
|
.commit_lagrange(&pubinputs, Blind(Field::one()))
|
||||||
.to_affine();
|
.to_affine();
|
||||||
|
|
||||||
for _ in 0..100 {
|
for _ in 0..100 {
|
||||||
|
|
|
||||||
|
|
@ -96,7 +96,7 @@ impl<C: CurveAffine> Proof<C> {
|
||||||
// Compute commitments to aux wire polynomials
|
// Compute commitments to aux wire polynomials
|
||||||
let aux_commitments_projective: Vec<_> = aux
|
let aux_commitments_projective: Vec<_> = aux
|
||||||
.iter()
|
.iter()
|
||||||
.map(|poly| params.commit_lagrange(poly, Blind(C::Scalar::zero()))) // TODO: bad blind?
|
.map(|poly| params.commit_lagrange(poly, Blind::default()))
|
||||||
.collect();
|
.collect();
|
||||||
let mut aux_commitments = vec![C::zero(); aux_commitments_projective.len()];
|
let mut aux_commitments = vec![C::zero(); aux_commitments_projective.len()];
|
||||||
C::Projective::batch_to_affine(&aux_commitments_projective, &mut aux_commitments);
|
C::Projective::batch_to_affine(&aux_commitments_projective, &mut aux_commitments);
|
||||||
|
|
@ -501,7 +501,7 @@ impl<C: CurveAffine> Proof<C> {
|
||||||
accumulate(
|
accumulate(
|
||||||
point_index,
|
point_index,
|
||||||
&aux_polys[wire.0],
|
&aux_polys[wire.0],
|
||||||
Blind(C::Scalar::zero()),
|
Blind::default(),
|
||||||
aux_evals[query_index],
|
aux_evals[query_index],
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue