Skip to content

Commit a84cb7f

Browse files
author
Kunming Jiang
committed
Added r trim formula
1 parent 30ad655 commit a84cb7f

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

spartan_parallel/src/dense_mlpoly.rs

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -458,6 +458,24 @@ impl<E: ExtensionField> PolyEvalProof<E> {
458458
_random_tape: &mut RandomTape<E>,
459459
) -> Vec<PolyEvalProof<E>> {
460460
// TODO: Alternative evaluation proof scheme
461+
/* Pad or trim rq and ry in the following sense
462+
let num_vars_q = num_proofs.log_2();
463+
let num_vars_y = num_inputs.log_2();
464+
let ry_short = {
465+
if num_vars_y >= ry.len() {
466+
let ry_pad = &vec![zero; num_vars_y - ry.len()];
467+
[ry_pad, ry].concat()
468+
}
469+
// Else ry_short is the last w.num_inputs[p].log_2() entries of ry
470+
// thus, to obtain the actual ry, need to multiply by (1 - ry2)(1 - ry3)..., which is ry_factors[num_rounds_y - w.num_inputs[p]]
471+
else {
472+
ry[ry.len() - num_vars_y..].to_vec()
473+
}
474+
};
475+
let rq_short = rq[rq.len() - num_vars_q..].to_vec();
476+
let r = [rq_short, ry_short.clone()].concat();
477+
};
478+
*/
461479
vec![]
462480
}
463481

0 commit comments

Comments
 (0)