exchange

Base system with REST service to issue digital coins, run by the payment service provider
Log | Files | Refs | Submodules | README | LICENSE

commit 34bf8b4976539e8a9b61f76fe69ddb1688732319
parent e9c0d15cbdb940eb991163ab85944b44055836f0
Author: Christian Grothoff <christian@grothoff.org>
Date:   Sun,  8 Dec 2024 03:15:10 +0100

rename cs_nonce to nonce in recoup protocol

Diffstat:
Msrc/exchange/taler-exchange-httpd_recoup-refresh.c | 3+--
Msrc/exchange/taler-exchange-httpd_recoup.c | 3+--
Msrc/lib/exchange_api_recoup.c | 2+-
Msrc/lib/exchange_api_recoup_refresh.c | 2+-
4 files changed, 4 insertions(+), 6 deletions(-)

diff --git a/src/exchange/taler-exchange-httpd_recoup-refresh.c b/src/exchange/taler-exchange-httpd_recoup-refresh.c @@ -393,9 +393,8 @@ TEH_handler_recoup_refresh (struct MHD_Connection *connection, GNUNET_JSON_spec_fixed_auto ("h_age_commitment", &coin.h_age_commitment), &coin.no_age_commitment), - // FIXME: rename to just 'nonce' GNUNET_JSON_spec_mark_optional ( - GNUNET_JSON_spec_fixed_auto ("cs_nonce", + GNUNET_JSON_spec_fixed_auto ("nonce", &nonce), &no_nonce), GNUNET_JSON_spec_end () diff --git a/src/exchange/taler-exchange-httpd_recoup.c b/src/exchange/taler-exchange-httpd_recoup.c @@ -398,9 +398,8 @@ TEH_handler_recoup (struct MHD_Connection *connection, GNUNET_JSON_spec_fixed_auto ("h_age_commitment", &coin.h_age_commitment), &coin.no_age_commitment), - // FIXME: should be renamed to just 'nonce'! GNUNET_JSON_spec_mark_optional ( - GNUNET_JSON_spec_fixed_auto ("cs_nonce", + GNUNET_JSON_spec_fixed_auto ("nonce", &nonce), &no_nonce), GNUNET_JSON_spec_end () diff --git a/src/lib/exchange_api_recoup.c b/src/lib/exchange_api_recoup.c @@ -295,7 +295,7 @@ TALER_EXCHANGE_recoup ( GNUNET_assert ( 0 == json_object_set_new (recoup_obj, - "cs_nonce", + "nonce", GNUNET_JSON_from_data_auto ( &nonce))); } diff --git a/src/lib/exchange_api_recoup_refresh.c b/src/lib/exchange_api_recoup_refresh.c @@ -294,7 +294,7 @@ TALER_EXCHANGE_recoup_refresh ( GNUNET_assert ( 0 == json_object_set_new (recoup_obj, - "cs_nonce", + "nonce", GNUNET_JSON_from_data_auto ( &nonce))); }