aboutsummaryrefslogtreecommitdiff
path: root/src/testing/testing_api_cmd_batch_withdraw.c
diff options
context:
space:
mode:
authorChristian Grothoff <grothoff@gnunet.org>2023-11-09 23:22:55 +0100
committerChristian Grothoff <grothoff@gnunet.org>2023-11-09 23:22:55 +0100
commit753a506f6564a05176864f3ba561e732b85d54a5 (patch)
tree012eb4ebcc0d3a91f5cf2d6b6e09530b11160f93 /src/testing/testing_api_cmd_batch_withdraw.c
parent41780a7f4ad1e4d68c57ca10f6521b89156772d6 (diff)
downloadexchange-753a506f6564a05176864f3ba561e732b85d54a5.tar.xz
more work on coin history testing
Diffstat (limited to 'src/testing/testing_api_cmd_batch_withdraw.c')
-rw-r--r--src/testing/testing_api_cmd_batch_withdraw.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/testing/testing_api_cmd_batch_withdraw.c b/src/testing/testing_api_cmd_batch_withdraw.c
index b455fc062..e4c054c5f 100644
--- a/src/testing/testing_api_cmd_batch_withdraw.c
+++ b/src/testing/testing_api_cmd_batch_withdraw.c
@@ -57,6 +57,11 @@ struct CoinState
struct TALER_CoinSpendPrivateKeyP coin_priv;
/**
+ * Public key of the coin.
+ */
+ struct TALER_CoinSpendPublicKeyP coin_pub;
+
+ /**
* Blinding key used during the operation.
*/
union GNUNET_CRYPTO_BlindingSecretP bks;
@@ -207,6 +212,9 @@ reserve_batch_withdraw_cb (void *cls,
TALER_denom_sig_deep_copy (&cs->sig,
&pcd->sig);
cs->coin_priv = pcd->coin_priv;
+ GNUNET_CRYPTO_eddsa_key_get_public (&cs->coin_priv.eddsa_priv,
+ &cs->coin_pub.eddsa_pub);
+
cs->bks = pcd->bks;
cs->exchange_vals = pcd->exchange_vals;
}
@@ -402,6 +410,8 @@ batch_withdraw_traits (void *cls,
&cs->reserve_history),
TALER_TESTING_make_trait_coin_priv (index,
&cs->coin_priv),
+ TALER_TESTING_make_trait_coin_pub (index,
+ &cs->coin_pub),
TALER_TESTING_make_trait_planchet_secrets (index,
&cs->ps),
TALER_TESTING_make_trait_blinding_key (index,