Skip to content

Commit

Permalink
Revert "Incorporate [discussion] results."
Browse files Browse the repository at this point in the history
This reverts commit 58fa946.
  • Loading branch information
skaunov committed Oct 19, 2023
1 parent 58fa946 commit ec50a1b
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions rust-arkworks/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -48,21 +48,21 @@ pub mod sig {
}

fn compute_c_v1<P: SWModelParameters>(
g_point: &GroupAffine<P>,
generator: &GroupAffine<P>,
pk: &GroupAffine<P>,
hash_sha256: &GroupAffine<P>,
hash1: &GroupAffine<P>,
nullifier: &GroupAffine<P>,
r_point: &GroupAffine<P>,
hash_sha256_r: &GroupAffine<P>,
hash1_r: &GroupAffine<P>,
) -> Output<Sha256> {
// Compute c = sha512([g, pk, h, nul, g^r, z])
let c_preimage_vec = [
affine_to_bytes::<P>(g_point),
affine_to_bytes::<P>(generator),
affine_to_bytes::<P>(pk),
affine_to_bytes::<P>(hash_sha256),
affine_to_bytes::<P>(hash1),
affine_to_bytes::<P>(nullifier),
affine_to_bytes::<P>(r_point),
affine_to_bytes::<P>(hash_sha256_r)
affine_to_bytes::<P>(hash1_r)
].concat();

Sha256::digest(c_preimage_vec.as_slice())
Expand Down

0 comments on commit ec50a1b

Please sign in to comment.