gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[taler-exchange] 64/130: fix bug


From: gnunet
Subject: [taler-exchange] 64/130: fix bug
Date: Wed, 17 Nov 2021 12:25:12 +0100

This is an automated email from the git hooks/post-receive script.

grothoff pushed a commit to branch master
in repository exchange.

commit c231e9925c6ac3dcd33205b378c9f648f1fe901e
Author: Christian Grothoff <christian@grothoff.org>
AuthorDate: Mon Nov 1 13:20:03 2021 +0100

    fix bug
---
 src/lib/exchange_api_link.c | 10 ++++++----
 1 file changed, 6 insertions(+), 4 deletions(-)

diff --git a/src/lib/exchange_api_link.c b/src/lib/exchange_api_link.c
index 920224d4..08869ed1 100644
--- a/src/lib/exchange_api_link.c
+++ b/src/lib/exchange_api_link.c
@@ -91,14 +91,14 @@ parse_link_coin (const struct TALER_EXCHANGE_LinkHandle *lh,
                  struct TALER_DenominationSignature *sig,
                  struct TALER_DenominationPublicKey *pub)
 {
-  struct GNUNET_CRYPTO_RsaSignature *bsig;
+  struct TALER_BlindedDenominationSignature bsig;
   struct TALER_DenominationPublicKey rpub;
   struct TALER_CoinSpendSignatureP link_sig;
   struct GNUNET_JSON_Specification spec[] = {
     TALER_JSON_spec_denom_pub ("denom_pub",
                                &rpub),
-    GNUNET_JSON_spec_rsa_signature ("ev_sig",
-                                    &bsig),
+    TALER_JSON_spec_blinded_denom_sig ("ev_sig",
+                                       &bsig),
     GNUNET_JSON_spec_fixed_auto ("link_sig",
                                  &link_sig),
     GNUNET_JSON_spec_end ()
@@ -124,9 +124,11 @@ parse_link_coin (const struct TALER_EXCHANGE_LinkHandle 
*lh,
 
   /* extract coin and signature */
   *coin_priv = fc.coin_priv;
+  // FIXME: use more generlized unblinding API!
+  GNUNET_assert (TALER_DENOMINATION_RSA == bsig.cipher);
   sig->cipher = TALER_DENOMINATION_RSA;
   sig->details.rsa_signature
-    = TALER_rsa_unblind (bsig,
+    = TALER_rsa_unblind (bsig.details.blinded_rsa_signature,
                          &fc.blinding_key.bks,
                          rpub.details.rsa_public_key);
   /* verify link_sig */

-- 
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]