gnunet-svn
[Top][All Lists]
Advanced

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

[taler-exchange] branch master updated: -more refresh CS fixes


From: gnunet
Subject: [taler-exchange] branch master updated: -more refresh CS fixes
Date: Wed, 09 Feb 2022 17:30:04 +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 730f9e88 -more refresh CS fixes
730f9e88 is described below

commit 730f9e88658ba67b74c219d08df82f034112673d
Author: Christian Grothoff <christian@grothoff.org>
AuthorDate: Wed Feb 9 17:30:02 2022 +0100

    -more refresh CS fixes
---
 src/lib/exchange_api_refresh_common.c | 8 ++++++++
 src/util/crypto.c                     | 5 +++++
 2 files changed, 13 insertions(+)

diff --git a/src/lib/exchange_api_refresh_common.c 
b/src/lib/exchange_api_refresh_common.c
index 8891377e..b901bab3 100644
--- a/src/lib/exchange_api_refresh_common.c
+++ b/src/lib/exchange_api_refresh_common.c
@@ -146,6 +146,14 @@ TALER_EXCHANGE_get_melt_data_ (
       TALER_planchet_blinding_secret_create (fc,
                                              &alg_values[j],
                                              &bks);
+      /* Note: we already did this for the /csr request,
+         so this computation is redundant, and here additionally
+         repeated KAPPA times. Could be avoided with slightly
+         more bookkeeping in the future */
+      TALER_cs_refresh_nonce_derive (
+        ps,
+        j,
+        &pd.blinded_planchet.details.cs_blinded_planchet.nonce);
       if (GNUNET_OK !=
           TALER_planchet_prepare (&md->fresh_pks[j],
                                   &alg_values[j],
diff --git a/src/util/crypto.c b/src/util/crypto.c
index 5a7dbfee..614b008c 100644
--- a/src/util/crypto.c
+++ b/src/util/crypto.c
@@ -476,6 +476,11 @@ TALER_refresh_get_commitment (struct 
TALER_RefreshCommitmentP *rc,
     {
       const struct TALER_RefreshCoinData *rcd = &rce->new_coins[j];
 
+      GNUNET_log (GNUNET_ERROR_TYPE_ERROR,
+                  "BCH %u/%u %s\n",
+                  i, j,
+                  TALER_B2S (
+                    &rcd->blinded_planchet.details.cs_blinded_planchet));
       TALER_blinded_planchet_hash (&rcd->blinded_planchet,
                                    hash_context);
     }

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