diff options
author | Christian Grothoff <christian@grothoff.org> | 2022-02-09 22:02:29 +0100 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2022-02-09 22:02:29 +0100 |
commit | 025922950dcf39700625e04be9f6037af67dddf5 (patch) | |
tree | 89b14956f470210e716b46dde8615221e51d1d72 /src/lib | |
parent | e6598cfa1a81f6b040718933496436987d21194b (diff) | |
download | exchange-025922950dcf39700625e04be9f6037af67dddf5.tar.xz |
pass exchange values to /recoup
Diffstat (limited to 'src/lib')
-rw-r--r-- | src/lib/exchange_api_csr.c | 12 | ||||
-rw-r--r-- | src/lib/exchange_api_recoup.c | 3 |
2 files changed, 6 insertions, 9 deletions
diff --git a/src/lib/exchange_api_csr.c b/src/lib/exchange_api_csr.c index 968f13adf..220dfba11 100644 --- a/src/lib/exchange_api_csr.c +++ b/src/lib/exchange_api_csr.c @@ -103,18 +103,12 @@ csr_ok (struct TALER_EXCHANGE_CsRHandle *csrh, json_t *av = json_array_get (arr, i); struct GNUNET_JSON_Specification spec[] = { - GNUNET_JSON_spec_fixed ( - "r_pub_0", - &alg_values[i].details.cs_values.r_pub_pair.r_pub[0], - sizeof (struct GNUNET_CRYPTO_CsRPublic)), - GNUNET_JSON_spec_fixed ( - "r_pub_1", - &alg_values[i].details.cs_values.r_pub_pair.r_pub[1], - sizeof (struct GNUNET_CRYPTO_CsRPublic)), + TALER_JSON_spec_exchange_withdraw_values ( + "ewv", + &alg_values[i]), GNUNET_JSON_spec_end () }; - alg_values[i].cipher = TALER_DENOMINATION_CS; if (GNUNET_OK != GNUNET_JSON_parse (av, spec, diff --git a/src/lib/exchange_api_recoup.c b/src/lib/exchange_api_recoup.c index be26dc982..c507d1e6a 100644 --- a/src/lib/exchange_api_recoup.c +++ b/src/lib/exchange_api_recoup.c @@ -322,6 +322,9 @@ TALER_EXCHANGE_recoup (struct TALER_EXCHANGE_Handle *exchange, &h_denom_pub), TALER_JSON_pack_denom_sig ("denom_sig", denom_sig), + // FIXME: add this to the spec! + TALER_JSON_pack_exchange_withdraw_values ("ewv", + exchange_vals), GNUNET_JSON_pack_data_auto ("coin_sig", &coin_sig), GNUNET_JSON_pack_data_auto ("coin_blind_key_secret", |