Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: connect deferred vk root #1649

Merged
merged 12 commits into from
Oct 18, 2024
4 changes: 4 additions & 0 deletions crates/recursion/circuit/src/machine/deferred.rs
Original file line number Diff line number Diff line change
Expand Up @@ -181,6 +181,10 @@ where
// Get the current public values.
let current_public_values: &RecursionPublicValues<Felt<C::F>> =
shard_proof.public_values.as_slice().borrow();
// Assert that the `vk_root` is the same as the witnessed one.
for (elem, expected) in current_public_values.vk_root.iter().zip(vk_root.iter()) {
builder.assert_felt_eq(*elem, *expected);
}
// Assert that the public values are valid.
assert_recursion_public_values_valid::<C, SC>(builder, current_public_values);

Expand Down
Loading