aboutsummaryrefslogtreecommitdiff
path: root/src/testing/testing_api_cmd_age_withdraw.c
diff options
context:
space:
mode:
authorÖzgür Kesim <oec-taler@kesim.org>2023-07-26 17:36:13 +0200
committerÖzgür Kesim <oec-taler@kesim.org>2023-07-26 17:36:13 +0200
commitd20804124025c259af1bc3e00ceed653c734b468 (patch)
tree5641b89f8367b15fa112d897dc26f55bdc448a21 /src/testing/testing_api_cmd_age_withdraw.c
parent0f17931b108deacb75eafa36234de088d38be22e (diff)
downloadexchange-d20804124025c259af1bc3e00ceed653c734b468.tar.xz
[age-withdraw] reveal works, tested.
Tests for age-withdraw and the reveal now work for both, RSA and CS.
Diffstat (limited to 'src/testing/testing_api_cmd_age_withdraw.c')
-rw-r--r--src/testing/testing_api_cmd_age_withdraw.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/testing/testing_api_cmd_age_withdraw.c b/src/testing/testing_api_cmd_age_withdraw.c
index 8849cd313..b295712d1 100644
--- a/src/testing/testing_api_cmd_age_withdraw.c
+++ b/src/testing/testing_api_cmd_age_withdraw.c
@@ -578,9 +578,9 @@ age_withdraw_reveal_cb (
case MHD_HTTP_OK:
{
const struct AgeWithdrawState *aws = awrs->aws;
- GNUNET_log (GNUNET_ERROR_TYPE_INFO,
- "Got age-withdraw reveal success!\n");
GNUNET_assert (awrs->num_coins == response->details.ok.num_sigs);
+ awrs->denom_sigs = GNUNET_new_array (awrs->num_coins,
+ struct TALER_DenominationSignature);
for (size_t n = 0; n < awrs->num_coins; n++)
TALER_denom_sig_unblind (&awrs->denom_sigs[n],
&response->details.ok.blinded_denom_sigs[n],
@@ -588,6 +588,8 @@ age_withdraw_reveal_cb (
&aws->coin_outputs[n].details.h_coin_pub,
&aws->coin_outputs[n].details.alg_values,
&aws->coin_inputs[n].denom_pub->key);
+ GNUNET_log (GNUNET_ERROR_TYPE_INFO,
+ "age-withdraw reveal success!\n");
}
break;
case MHD_HTTP_NOT_FOUND: