From 753a506f6564a05176864f3ba561e732b85d54a5 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Thu, 9 Nov 2023 23:22:55 +0100 Subject: more work on coin history testing --- src/testing/testing_api_cmd_batch_withdraw.c | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'src/testing/testing_api_cmd_batch_withdraw.c') 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 @@ -56,6 +56,11 @@ struct CoinState */ struct TALER_CoinSpendPrivateKeyP coin_priv; + /** + * Public key of the coin. + */ + struct TALER_CoinSpendPublicKeyP coin_pub; + /** * Blinding key used during the operation. */ @@ -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, -- cgit v1.2.3