From 842b58751aeeabe1ffacdaa20582e1d5c2fcea94 Mon Sep 17 00:00:00 2001 From: aniampio Date: Fri, 22 Oct 2021 17:15:47 +0200 Subject: [PATCH] Rename input variable to be more informative --- common/nymcoconut/src/scheme/issuance.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/common/nymcoconut/src/scheme/issuance.rs b/common/nymcoconut/src/scheme/issuance.rs index 7a679c982e..391f7ffda2 100644 --- a/common/nymcoconut/src/scheme/issuance.rs +++ b/common/nymcoconut/src/scheme/issuance.rs @@ -253,7 +253,7 @@ pub fn prepare_blind_sign( pub fn blind_sign( params: &Parameters, signing_secret_key: &SecretKey, - pub_key: &elgamal::PublicKey, + prover_pub_key: &elgamal::PublicKey, blind_sign_request: &BlindSignRequest, public_attributes: &[Attribute], ) -> Result { @@ -276,7 +276,7 @@ pub fn blind_sign( } // Verify the ZK proof - if !blind_sign_request.verify_proof(params, pub_key) { + if !blind_sign_request.verify_proof(params, prover_pub_key) { return Err(CoconutError::Issuance( "Failed to verify the proof of knowledge".to_string(), ));