Skip to content

Commit

Permalink
chore: assert_eq about step
Browse files Browse the repository at this point in the history
  • Loading branch information
cyphersnake committed Dec 3, 2024
1 parent 49831e5 commit fafbf38
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/ivc/cyclefold/sfc/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,12 @@ where
/// For the initial iteration, we will give the same accumulators that we take from the input
pub fn initial_instances(&self) -> Vec<Vec<CMain::ScalarExt>> {
let mut input = self.input.clone();
input.step += 1;
assert_eq!(
input.step, 0,
"this method can only be called for step == 0"
);

input.step = 1;
let out_marker = cyclefold::ro().absorb(&input).output(
NonZeroUsize::new(<CMain::ScalarExt as PrimeField>::NUM_BITS as usize).unwrap(),
);
Expand Down

0 comments on commit fafbf38

Please sign in to comment.