exchange

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

commit 3a3e3f0feea75afce9fb14b9adcc24b54893b167
parent 9c202f9207a4d69c352bbd3023c59f8439682272
Author: Christian Grothoff <christian@grothoff.org>
Date:   Sat, 28 Mar 2026 20:20:56 +0100

fix specification inconsistencies

Diffstat:
Msrc/lib/exchange_api_get-aml-OFFICER_PUB-kyc-statistics-NAMES.c | 2+-
Msrc/lib/exchange_api_get-reserves-RESERVE_PUB-history.c | 2+-
Msrc/lib/exchange_api_post-batch-deposit.c | 2+-
Msrc/lib/exchange_api_post-recoup-refresh.c | 2++
4 files changed, 5 insertions(+), 3 deletions(-)

diff --git a/src/lib/exchange_api_get-aml-OFFICER_PUB-kyc-statistics-NAMES.c b/src/lib/exchange_api_get-aml-OFFICER_PUB-kyc-statistics-NAMES.c @@ -149,7 +149,7 @@ parse_stats_ok_new ( struct TALER_EXCHANGE_GetAmlKycStatisticsEventCounter *ec = &statistics[idx]; struct GNUNET_JSON_Specification ispec[] = { - GNUNET_JSON_spec_string ("name", + GNUNET_JSON_spec_string ("event", &ec->name), GNUNET_JSON_spec_uint64 ("counter", &ec->counter), diff --git a/src/lib/exchange_api_get-reserves-RESERVE_PUB-history.c b/src/lib/exchange_api_get-reserves-RESERVE_PUB-history.c @@ -680,7 +680,7 @@ parse_open (struct TALER_EXCHANGE_ReserveHistoryEntry *rh, struct GNUNET_JSON_Specification open_spec[] = { GNUNET_JSON_spec_fixed_auto ("reserve_sig", &rh->details.open_request.reserve_sig), - TALER_JSON_spec_amount_any ("open_payment", + TALER_JSON_spec_amount_any ("open_fee", &rh->details.open_request.reserve_payment), GNUNET_JSON_spec_uint32 ("requested_min_purses", &rh->details.open_request.purse_limit), diff --git a/src/lib/exchange_api_post-batch-deposit.c b/src/lib/exchange_api_post-batch-deposit.c @@ -756,7 +756,7 @@ TALER_EXCHANGE_post_batch_deposit_create ( GNUNET_JSON_pack_data_auto ("wallet_data_hash", wallet_data_hashp)), GNUNET_JSON_pack_allow_null ( - GNUNET_JSON_pack_object_steal ("policy_details", + GNUNET_JSON_pack_object_steal ("policy", (json_t *) dcd->policy_details)), GNUNET_JSON_pack_timestamp ("timestamp", dcd->wallet_timestamp), diff --git a/src/lib/exchange_api_post-recoup-refresh.c b/src/lib/exchange_api_post-recoup-refresh.c @@ -268,6 +268,8 @@ TALER_EXCHANGE_post_recoup_refresh_create ( &coin_sig), GNUNET_JSON_pack_data_auto ("coin_blind_key_secret", &bks)); + // FIXME: nonce and h_age_commitment never sent here, but required + // by spec and server (if used with age commentment or CS cipher!) switch (denom_sig->unblinded_sig->cipher) { case GNUNET_CRYPTO_BSA_INVALID: