aboutsummaryrefslogtreecommitdiff
path: root/src/lib/exchange_api_recoup_refresh.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2022-02-06 19:00:01 +0100
committerChristian Grothoff <christian@grothoff.org>2022-02-06 19:00:01 +0100
commite735475623c161637d0f0d291473d4bc1729d1ed (patch)
tree5de87cacd921b1b704d0d26f119408305276fabb /src/lib/exchange_api_recoup_refresh.c
parentf173296c3ca55bbd4a541d5a5859cdb1be125da7 (diff)
downloadexchange-e735475623c161637d0f0d291473d4bc1729d1ed.tar.xz
-work on refresh_common FTBFS
Diffstat (limited to 'src/lib/exchange_api_recoup_refresh.c')
-rw-r--r--src/lib/exchange_api_recoup_refresh.c16
1 files changed, 12 insertions, 4 deletions
diff --git a/src/lib/exchange_api_recoup_refresh.c b/src/lib/exchange_api_recoup_refresh.c
index 8c30e8eab..ca6ce2db2 100644
--- a/src/lib/exchange_api_recoup_refresh.c
+++ b/src/lib/exchange_api_recoup_refresh.c
@@ -299,16 +299,24 @@ TALER_EXCHANGE_recoup_refresh (
json_t *recoup_obj;
CURL *eh;
char arg_str[sizeof (struct TALER_CoinSpendPublicKeyP) * 2 + 32];
+ struct TALER_CoinSpendPrivateKeyP coin_priv;
+ union TALER_DenominationBlindingKeyP bks;
GNUNET_assert (GNUNET_YES ==
TEAH_handle_is_ready (exchange));
- GNUNET_CRYPTO_eddsa_key_get_public (&ps->coin_priv.eddsa_priv,
+ TALER_planchet_setup_coin_priv (ps,
+ exchange_vals,
+ &coin_priv);
+ TALER_planchet_blinding_secret_create (ps,
+ exchange_vals,
+ &bks);
+ GNUNET_CRYPTO_eddsa_key_get_public (&coin_priv.eddsa_priv,
&coin_pub.eddsa_pub);
TALER_denom_pub_hash (&pk->key,
&h_denom_pub);
TALER_wallet_recoup_refresh_sign (&h_denom_pub,
- &ps->blinding_key,
- &ps->coin_priv,
+ &bks,
+ &coin_priv,
&coin_sig);
recoup_obj = GNUNET_JSON_PACK (
GNUNET_JSON_pack_data_auto ("denom_pub_hash",
@@ -318,7 +326,7 @@ TALER_EXCHANGE_recoup_refresh (
GNUNET_JSON_pack_data_auto ("coin_sig",
&coin_sig),
GNUNET_JSON_pack_data_auto ("coin_blind_key_secret",
- &ps->blinding_key));
+ &bks));
{
char pub_str[sizeof (struct TALER_CoinSpendPublicKeyP) * 2];