gnunet-svn
[Top][All Lists]
Advanced

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

[taler-exchange] branch master updated: -speed up invariant checks by us


From: gnunet
Subject: [taler-exchange] branch master updated: -speed up invariant checks by using new GNUnet API
Date: Thu, 25 Nov 2021 14:53:54 +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 dc4827ea -speed up invariant checks by using new GNUnet API
dc4827ea is described below

commit dc4827ea2026a70e39d7df49e58fd9cdd6cdc96f
Author: Christian Grothoff <christian@grothoff.org>
AuthorDate: Thu Nov 25 14:53:52 2021 +0100

    -speed up invariant checks by using new GNUnet API
---
 src/exchange/taler-exchange-httpd_keys.c | 16 ++++------------
 1 file changed, 4 insertions(+), 12 deletions(-)

diff --git a/src/exchange/taler-exchange-httpd_keys.c 
b/src/exchange/taler-exchange-httpd_keys.c
index bca1b644..5f747ccc 100644
--- a/src/exchange/taler-exchange-httpd_keys.c
+++ b/src/exchange/taler-exchange-httpd_keys.c
@@ -475,22 +475,14 @@ check_dk (void *cls,
           void *value)
 {
   struct TEH_DenominationKey *dk = value;
-  struct TALER_PlanchetSecretsP ps;
-  struct TALER_PlanchetDetail pd;
-  struct TALER_CoinPubHash c_hash;
+
 
   (void) hc;
   (void) value;
   GNUNET_assert (TALER_DENOMINATION_INVALID != dk->denom_pub.cipher);
-  memset (&ps,
-          42,
-          sizeof (ps));
-  GNUNET_assert (GNUNET_OK ==
-                 TALER_planchet_prepare (&dk->denom_pub,
-                                         &ps,
-                                         &c_hash,
-                                         &pd));
-  GNUNET_free (pd.coin_ev);
+  if (TALER_DENOMINATION_RSA == dk->denom_pub.cipher)
+    GNUNET_assert (GNUNET_CRYPTO_rsa_public_key_check (
+                     dk->denom_pub.details.rsa_public_key));
   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]