summaryrefslogtreecommitdiff
path: root/src/lib/exchange_api_refresh_common.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2022-02-12 14:38:24 +0100
committerChristian Grothoff <christian@grothoff.org>2022-02-12 14:38:27 +0100
commitf6ecf7458ab4a0e23233439ca6c878fd93921083 (patch)
tree1b23fe66bfdac54ba36266eb3960d375a2b7238e /src/lib/exchange_api_refresh_common.c
parent7cedf3f0bf0bd9c4f89c26bfbb4e276423860f65 (diff)
downloadexchange-f6ecf7458ab4a0e23233439ca6c878fd93921083.tar.gz
exchange-f6ecf7458ab4a0e23233439ca6c878fd93921083.tar.bz2
exchange-f6ecf7458ab4a0e23233439ca6c878fd93921083.zip
-refactor melt API, add FIXME for discovered bug
Diffstat (limited to 'src/lib/exchange_api_refresh_common.c')
-rw-r--r--src/lib/exchange_api_refresh_common.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/src/lib/exchange_api_refresh_common.c b/src/lib/exchange_api_refresh_common.c
index 4c65e390f..02af2a993 100644
--- a/src/lib/exchange_api_refresh_common.c
+++ b/src/lib/exchange_api_refresh_common.c
@@ -146,14 +146,15 @@ TALER_EXCHANGE_get_melt_data_ (
TALER_planchet_blinding_secret_create (fc,
&alg_values[j],
&bks);
- /* Note: we already did this for the /csr request,
+ /* FIXME: 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 (
- rms,
- j,
- &pd.blinded_planchet.details.cs_blinded_planchet.nonce);
+ if (TALER_DENOMINATION_CS == alg_values[j].cipher)
+ TALER_cs_refresh_nonce_derive (
+ rms,
+ j,
+ &pd.blinded_planchet.details.cs_blinded_planchet.nonce);
if (GNUNET_OK !=
TALER_planchet_prepare (&md->fresh_pks[j],
&alg_values[j],