Skip to content

Commit

Permalink
[kimchi][prover] less error-prone way to get the zk rows
Browse files Browse the repository at this point in the history
  • Loading branch information
mimoo committed Oct 22, 2021
1 parent 207c916 commit e3e622e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dlog/plonk-15-wires/src/prover.rs
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ where
padded_witness[..w.len()].copy_from_slice(w);

// add the zero-knowledge rows
for w_ in &mut padded_witness[length_without_zk_rows..] {
for w_ in padded_witness.iter_mut().rev().take(ZK_ROWS as usize) {
*w_ = Fr::<G>::rand(rng);
}

Expand Down

0 comments on commit e3e622e

Please sign in to comment.