gnunet-svn
[Top][All Lists]
Advanced

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

[taler-exchange] branch master updated: -simpilify


From: gnunet
Subject: [taler-exchange] branch master updated: -simpilify
Date: Wed, 09 Feb 2022 10:09:03 +0100

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

grothoff pushed a commit to branch master
in repository exchange.

The following commit(s) were added to refs/heads/master by this push:
     new 88b84d01 -simpilify
88b84d01 is described below

commit 88b84d01cbad3065465d9934ac2a80f8b3c2d764
Author: Christian Grothoff <christian@grothoff.org>
AuthorDate: Wed Feb 9 10:09:01 2022 +0100

    -simpilify
---
 src/util/crypto.c | 42 ++++++++----------------------------------
 1 file changed, 8 insertions(+), 34 deletions(-)

diff --git a/src/util/crypto.c b/src/util/crypto.c
index 03c3ea0f..293ba968 100644
--- a/src/util/crypto.c
+++ b/src/util/crypto.c
@@ -331,46 +331,20 @@ TALER_planchet_prepare (const struct 
TALER_DenominationPublicKey *dk,
   struct TALER_CoinSpendPublicKeyP coin_pub;
 
   GNUNET_assert (alg_values->cipher == dk->cipher);
-
   GNUNET_CRYPTO_eddsa_key_get_public (&coin_priv->eddsa_priv,
                                       &coin_pub.eddsa_pub);
-
-  switch (dk->cipher)
+  if (GNUNET_OK !=
+      TALER_denom_blind (dk,
+                         bks,
+                         NULL, /* FIXME-Oec */
+                         &coin_pub,
+                         alg_values,
+                         c_hash,
+                         &pd->blinded_planchet))
   {
-  case TALER_DENOMINATION_RSA:
-    if (GNUNET_OK !=
-        TALER_denom_blind (dk,
-                           bks,
-                           NULL, /* FIXME-Oec */
-                           &coin_pub,
-                           alg_values,
-                           c_hash,
-                           &pd->blinded_planchet))
-    {
-      GNUNET_break (0);
-      return GNUNET_SYSERR;
-    }
-    break;
-  case TALER_DENOMINATION_CS:
-    if (GNUNET_OK !=
-        TALER_denom_blind (dk,
-                           bks,
-                           NULL, /* FIXME-Oec */
-                           &coin_pub,
-                           alg_values,
-                           c_hash,
-                           &pd->blinded_planchet))
-    {
-      GNUNET_break (0);
-      return GNUNET_SYSERR;
-    }
-    break;
-  default:
     GNUNET_break (0);
     return GNUNET_SYSERR;
   }
-
-  pd->blinded_planchet.cipher = dk->cipher;
   TALER_denom_pub_hash (dk,
                         &pd->denom_pub_hash);
   return GNUNET_OK;

-- 
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]