summaryrefslogtreecommitdiff
path: root/src/lib/exchange_api_refreshes_reveal.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2022-02-09 18:42:16 +0100
committerChristian Grothoff <christian@grothoff.org>2022-02-09 18:42:16 +0100
commit4ee82c1ed3e946c9e438fed678382f24bef2a856 (patch)
tree1acf77d2dfc0f852e823f9bce9669a43e8b72952 /src/lib/exchange_api_refreshes_reveal.c
parent730f9e88658ba67b74c219d08df82f034112673d (diff)
downloadexchange-4ee82c1ed3e946c9e438fed678382f24bef2a856.tar.gz
exchange-4ee82c1ed3e946c9e438fed678382f24bef2a856.tar.bz2
exchange-4ee82c1ed3e946c9e438fed678382f24bef2a856.zip
-fix init of nonces in reveal request
Diffstat (limited to 'src/lib/exchange_api_refreshes_reveal.c')
-rw-r--r--src/lib/exchange_api_refreshes_reveal.c15
1 files changed, 9 insertions, 6 deletions
diff --git a/src/lib/exchange_api_refreshes_reveal.c b/src/lib/exchange_api_refreshes_reveal.c
index 1d748e299..d6e291032 100644
--- a/src/lib/exchange_api_refreshes_reveal.c
+++ b/src/lib/exchange_api_refreshes_reveal.c
@@ -377,7 +377,7 @@ TALER_EXCHANGE_refreshes_reveal (
struct TALER_DenominationHash denom_hash;
struct TALER_PlanchetDetail pd;
struct TALER_CoinPubHash c_hash;
- struct TALER_PlanchetSecretsP ps;
+ struct TALER_PlanchetSecretsP coin_ps;
union TALER_DenominationBlindingKeyP bks;
struct TALER_CoinSpendPrivateKeyP coin_priv;
@@ -389,13 +389,17 @@ TALER_EXCHANGE_refreshes_reveal (
&denom_hash)));
TALER_transfer_secret_to_planchet_secret (&ts,
i,
- &ps);
- TALER_planchet_setup_coin_priv (&ps,
+ &coin_ps);
+ TALER_planchet_setup_coin_priv (&coin_ps,
&alg_values[i],
&coin_priv);
- TALER_planchet_blinding_secret_create (&ps,
+ TALER_planchet_blinding_secret_create (&coin_ps,
&alg_values[i],
&bks);
+ TALER_cs_refresh_nonce_derive (
+ ps,
+ i,
+ &pd.blinded_planchet.details.cs_blinded_planchet.nonce);
if (GNUNET_OK !=
TALER_planchet_prepare (&md.fresh_pks[i],
&alg_values[i],
@@ -446,8 +450,7 @@ TALER_EXCHANGE_refreshes_reveal (
{
if (j == noreveal_index)
{
- /* This is crucial: exclude the transfer key for the
- noreval index! */
+ /* This is crucial: exclude the transfer key for the noreval index! */
continue;
}
GNUNET_assert (0 ==