Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions crates/ivc/src/compilers/cyclefold/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -364,12 +364,6 @@ where
current_state: &FC::State,
Proof(W, U, w, u, cf_W, cf_U): &Self::Proof<FC>,
) -> Result<(), Error> {
if i == 0 {
return (initial_state == current_state)
.then_some(())
.ok_or(Error::IVCVerificationFail);
}

// Ensure the prover supplied `initial_state` and `current_state` have
// the same shape as `reference_state`'s, which is exactly what the
// augmented circuit was synthesized for.
Expand All @@ -383,6 +377,12 @@ where
return Err(Error::IVCVerificationFail);
}

if i == 0 {
return (initial_state == current_state)
.then_some(())
.ok_or(Error::IVCVerificationFail);
}

let hash = T::new_with_pp_hash(hash_config.clone(), *pp_hash);
let mut sponge = hash.separate_domain("sponge".as_ref());

Expand Down
Loading