Skip to content

Commit

Permalink
fix: adapt to PR #291
Browse files Browse the repository at this point in the history
- Refactored the 'prove_mut' function in 'nifs.rs'
- Removed the necessity of absorbing U1 in the `absorb_in_ro` function, reducing redundant steps.
  • Loading branch information
huitseeker committed Feb 20, 2024
1 parent f5875f8 commit 0081109
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/nifs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -105,8 +105,7 @@ impl<E: Engine> NIFS<E> {
// append the digest of pp to the transcript
ro.absorb(scalar_as_base::<E>(*pp_digest));

// append U1 and U2 to transcript
U1.absorb_in_ro(&mut ro);
// append U2 to transcript, U1 does not need to absorbed since U2.X[0] = Hash(params, U1, i, z0, zi)
U2.absorb_in_ro(&mut ro);

// compute a commitment to the cross-term
Expand Down

0 comments on commit 0081109

Please sign in to comment.