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

, + generator: &GroupAffine

, pk: &GroupAffine

, - hash_sha256: &GroupAffine

, + hash1: &GroupAffine

, nullifier: &GroupAffine

, r_point: &GroupAffine

, - hash_sha256_r: &GroupAffine

, + hash1_r: &GroupAffine

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

(g_point), + affine_to_bytes::

(generator), affine_to_bytes::

(pk), - affine_to_bytes::

(hash_sha256), + affine_to_bytes::

(hash1), affine_to_bytes::

(nullifier), affine_to_bytes::

(r_point), - affine_to_bytes::

(hash_sha256_r) + affine_to_bytes::

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