Skip to content

Commit

Permalink
fix(ivc): sangria ro consistency
Browse files Browse the repository at this point in the history
**Motivation**
The bug was that with empty step circuit instances within sangria::IVC there was no absorption of formal zero

**Overview**
N/A
  • Loading branch information
cyphersnake committed Feb 17, 2025
1 parent 680fcdc commit 6dacf74
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/ivc/sangria/fold_relaxed_plonk_instance_chip.rs
Original file line number Diff line number Diff line change
Expand Up @@ -898,7 +898,12 @@ where

let assigned_step_circuit_instances =
match self.relaxed.step_circuit_instances_hash_accumulator {
SCInstancesHashAcc::None => SCInstancesHashAcc::None,
SCInstancesHashAcc::None => {
assign_and_absorb_diff_field!(&C::Base::ZERO, || {
"empty step_circuit_instances"
})?;
SCInstancesHashAcc::None
}
SCInstancesHashAcc::Hash(hash) => {
SCInstancesHashAcc::Hash(assign_and_absorb_diff_field!(&hash, || {
"step_circuit_instances"
Expand Down

0 comments on commit 6dacf74

Please sign in to comment.