Update plonky2/src/fri/validate_shape.rs

Co-authored-by: wborgeaud <williamborgeaud@gmail.com>
This commit is contained in:
Daniel Lubarov 2022-09-19 17:33:18 -07:00
parent dbce356818
commit 786826487c

View File

@ -40,7 +40,15 @@ where
.iter()
.zip(&instance.oracles)
{
ensure!(leaf.len() == oracle.num_polys); // TODO: Account for blinding if ZK?
ensure!(
leaf.len()
== oracle.num_polys
+ if oracle.blinding && params.hiding {
SALT_SIZE
} else {
0
}
);
ensure!(merkle_proof.len() + cap_height == params.lde_bits());
}