Skip to content

Commit

Permalink
typos
Browse files Browse the repository at this point in the history
  • Loading branch information
Okm165 committed Nov 22, 2024
1 parent 6d054cc commit adda915
Showing 1 changed file with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -138,9 +138,9 @@ impl Poseidon2PermuteChip {
builder,
);
}
let mut commited_sbox_x7 = full_round.sbox_x7.map(|x| x.into());
external_linear_layer::<AB::Expr>(&mut commited_sbox_x7);
builder.assert_all_eq(commited_sbox_x7, full_round.post);
let mut committed_sbox_x7 = full_round.sbox_x7.map(|x| x.into());
external_linear_layer::<AB::Expr>(&mut committed_sbox_x7);
builder.assert_all_eq(committed_sbox_x7, full_round.post);
}

pub fn eval_partial_round<AB>(
Expand All @@ -157,10 +157,10 @@ impl Poseidon2PermuteChip {
&(state[0].clone() + *round_constant),
builder,
);
let mut commited_state = state.clone();
commited_state[0] = partial_round.sbox_x7.into();
internal_linear_layer::<AB::Expr>(&mut commited_state);
builder.assert_all_eq(commited_state, partial_round.post.map(|x| x.into()));
let mut committed_state = state.clone();
committed_state[0] = partial_round.sbox_x7.into();
internal_linear_layer::<AB::Expr>(&mut committed_state);
builder.assert_all_eq(committed_state, partial_round.post.map(|x| x.into()));
}

#[inline]
Expand Down

0 comments on commit adda915

Please sign in to comment.