Skip to content

Commit

Permalink
fix: fix hashing order
Browse files Browse the repository at this point in the history
  • Loading branch information
mpenciak committed Mar 2, 2024
1 parent aab52fa commit c2dd897
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions src/cyclefold/gadgets.rs
Original file line number Diff line number Diff line change
Expand Up @@ -458,12 +458,12 @@ pub mod emulated {
where
CS: ConstraintSystem<<E as Engine>::Base>,
{
self
.comm_E
.absorb_in_ro(cs.namespace(|| "absorb comm_E"), ro)?;
self
.comm_W
.absorb_in_ro(cs.namespace(|| "absorb comm_W"), ro)?;
self
.comm_E
.absorb_in_ro(cs.namespace(|| "absorb comm_E"), ro)?;

ro.absorb(&self.u);
ro.absorb(&self.x0);
Expand Down
2 changes: 1 addition & 1 deletion src/cyclefold/snark.rs
Original file line number Diff line number Diff line change
Expand Up @@ -521,10 +521,10 @@ where
{
absorb_commitment::<E1, E2>(&U.comm_W, ro);
absorb_commitment::<E1, E2>(&U.comm_E, ro);
ro.absorb(U.u);
for e in &U.X {
ro.absorb(*e);
}
ro.absorb(U.u);
}

#[cfg(test)]
Expand Down

0 comments on commit c2dd897

Please sign in to comment.