diff --git a/rust-arkworks/src/lib.rs b/rust-arkworks/src/lib.rs index 500ebe8..bce66f0 100644 --- a/rust-arkworks/src/lib.rs +++ b/rust-arkworks/src/lib.rs @@ -48,21 +48,21 @@ pub mod sig { } fn compute_c_v1( - generator: &GroupAffine

, + g_point: &GroupAffine

, pk: &GroupAffine

, - hash1: &GroupAffine

, + hash_sha256: &GroupAffine

, nullifier: &GroupAffine

, r_point: &GroupAffine

, - hash1_r: &GroupAffine

, + hash_sha256_r: &GroupAffine

, ) -> Output { // Compute c = sha512([g, pk, h, nul, g^r, z]) let c_preimage_vec = [ - affine_to_bytes::

(generator), + affine_to_bytes::

(g_point), affine_to_bytes::

(pk), - affine_to_bytes::

(hash1), + affine_to_bytes::

(hash_sha256), affine_to_bytes::

(nullifier), affine_to_bytes::

(r_point), - affine_to_bytes::

(hash1_r) + affine_to_bytes::

(hash_sha256_r) ].concat(); Sha256::digest(c_preimage_vec.as_slice())