Skip to content

Commit e3e622e

Browse files
committed
[kimchi][prover] less error-prone way to get the zk rows
1 parent 207c916 commit e3e622e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

dlog/plonk-15-wires/src/prover.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ where
140140
padded_witness[..w.len()].copy_from_slice(w);
141141

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

0 commit comments

Comments
 (0)