gnunet-svn
[Top][All Lists]
Advanced

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

[taler-exchange] branch master updated: -DCE


From: gnunet
Subject: [taler-exchange] branch master updated: -DCE
Date: Mon, 01 Jan 2024 18:15:34 +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 101c1919 -DCE
101c1919 is described below

commit 101c1919c7522615bac5f891364cec5df6e55fcb
Author: Christian Grothoff <christian@grothoff.org>
AuthorDate: Mon Jan 1 18:15:23 2024 +0100

    -DCE
---
 contrib/gana                             |  2 +-
 src/exchange/taler-exchange-httpd_keys.c | 58 --------------------------------
 src/exchange/taler-exchange-httpd_keys.h | 17 +---------
 3 files changed, 2 insertions(+), 75 deletions(-)

diff --git a/contrib/gana b/contrib/gana
index 6c45f89a..c6caa0a9 160000
--- a/contrib/gana
+++ b/contrib/gana
@@ -1 +1 @@
-Subproject commit 6c45f89a6434e7a10ef90503153aa487be9a3de6
+Subproject commit c6caa0a91e01b0c74fd71fce71ee5207264a492c
diff --git a/src/exchange/taler-exchange-httpd_keys.c 
b/src/exchange/taler-exchange-httpd_keys.c
index 913cd734..4cefcf87 100644
--- a/src/exchange/taler-exchange-httpd_keys.c
+++ b/src/exchange/taler-exchange-httpd_keys.c
@@ -3499,64 +3499,6 @@ TEH_keys_denomination_by_hash_from_state (
 }
 
 
-enum TALER_ErrorCode
-TEH_keys_denomination_sign (
-  const struct TEH_CoinSignData *csd,
-  bool for_melt,
-  struct TALER_BlindedDenominationSignature *bs)
-{
-  struct TEH_KeyStateHandle *ksh;
-  struct HelperDenomination *hd;
-  const struct TALER_DenominationHashP *h_denom_pub = csd->h_denom_pub;
-  const struct TALER_BlindedPlanchet *bp = csd->bp;
-
-  ksh = TEH_keys_get_state ();
-  if (NULL == ksh)
-    return TALER_EC_EXCHANGE_GENERIC_KEYS_MISSING;
-  hd = GNUNET_CONTAINER_multihashmap_get (ksh->helpers->denom_keys,
-                                          &h_denom_pub->hash);
-  if (NULL == hd)
-    return TALER_EC_EXCHANGE_GENERIC_DENOMINATION_KEY_UNKNOWN;
-  if (bp->blinded_message->cipher !=
-      hd->denom_pub.bsign_pub_key->cipher)
-    return TALER_EC_GENERIC_INTERNAL_INVARIANT_FAILURE;
-  switch (hd->denom_pub.bsign_pub_key->cipher)
-  {
-  case GNUNET_CRYPTO_BSA_INVALID:
-    break;
-  case GNUNET_CRYPTO_BSA_RSA:
-    TEH_METRICS_num_signatures[TEH_MT_SIGNATURE_RSA]++;
-    {
-      struct TALER_CRYPTO_RsaSignRequest rsr = {
-        .h_rsa = &hd->h_details.h_rsa,
-        .msg = bp->blinded_message->details.rsa_blinded_message.blinded_msg,
-        .msg_size =
-          bp->blinded_message->details.rsa_blinded_message.blinded_msg_size
-      };
-
-      return TALER_CRYPTO_helper_rsa_sign (
-        ksh->helpers->rsadh,
-        &rsr,
-        bs);
-    }
-  case GNUNET_CRYPTO_BSA_CS:
-    TEH_METRICS_num_signatures[TEH_MT_SIGNATURE_CS]++;
-    {
-      struct TALER_CRYPTO_CsSignRequest csr;
-
-      csr.h_cs = &hd->h_details.h_cs;
-      csr.blinded_planchet = &bp->blinded_message->details.cs_blinded_message;
-      return TALER_CRYPTO_helper_cs_sign (
-        ksh->helpers->csdh,
-        &csr,
-        for_melt,
-        bs);
-    }
-  }
-  return TALER_EC_GENERIC_INTERNAL_INVARIANT_FAILURE;
-}
-
-
 enum TALER_ErrorCode
 TEH_keys_denomination_batch_sign (
   unsigned int csds_length,
diff --git a/src/exchange/taler-exchange-httpd_keys.h 
b/src/exchange/taler-exchange-httpd_keys.h
index 5e19ac2f..e526385f 100644
--- a/src/exchange/taler-exchange-httpd_keys.h
+++ b/src/exchange/taler-exchange-httpd_keys.h
@@ -300,22 +300,7 @@ struct TEH_CoinSignData
 
 
 /**
- * Request to sign @a csd for melting.
- *
- * @param csd identifies data to blindly sign and key to sign with
- * @param for_melt true if this is for a melt operation
- * @param[out] bs set to the blind signature on success
- * @return #TALER_EC_NONE on success
- */
-enum TALER_ErrorCode
-TEH_keys_denomination_sign (
-  const struct TEH_CoinSignData *csd,
-  bool for_melt,
-  struct TALER_BlindedDenominationSignature *bs);
-
-
-/**
- * Request to sign @a csds for melting.
+ * Request to sign @a csds.
  *
  * @param csds array with data to blindly sign (and keys to sign with)
  * @param csds_length length of @a csds array

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