diff options
Diffstat (limited to 'src/testing/testing_api_cmd_batch_withdraw.c')
-rw-r--r-- | src/testing/testing_api_cmd_batch_withdraw.c | 10 |
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, |