diff options
author | Christian Grothoff <christian@grothoff.org> | 2022-04-23 20:50:27 +0200 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2022-04-23 20:50:27 +0200 |
commit | 345c141bad275828b35a4299a44e9d357998d6a4 (patch) | |
tree | bab53198242b73857a5fac295e79b5eb586b4d13 /src/lib | |
parent | b7a4fd401e0a90e309b1be66714b2a0c932f2813 (diff) |
-work on p2p payments
Diffstat (limited to 'src/lib')
-rw-r--r-- | src/lib/exchange_api_purse_create_with_deposit.c | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/src/lib/exchange_api_purse_create_with_deposit.c b/src/lib/exchange_api_purse_create_with_deposit.c index 48b9aad78..f6f8c2d86 100644 --- a/src/lib/exchange_api_purse_create_with_deposit.c +++ b/src/lib/exchange_api_purse_create_with_deposit.c @@ -329,11 +329,15 @@ TALER_EXCHANGE_purse_create_with_deposit ( GNUNET_assert (NULL != deposit_arr); url = TEAH_path_to_url (exchange, "/"); + GNUNET_log (GNUNET_ERROR_TYPE_INFO, + "Signing with URL `%s'\n", + url); for (unsigned int i = 0; i<num_deposits; i++) { const struct TALER_EXCHANGE_PurseDeposit *deposit = &deposits[i]; json_t *jdeposit; struct TALER_CoinSpendSignatureP coin_sig; + struct TALER_CoinSpendPublicKeyP coin_pub; #if FIXME_OEC struct TALER_AgeCommitmentHash agh; struct TALER_AgeCommitmentHash *aghp = NULL; @@ -354,6 +358,8 @@ TALER_EXCHANGE_purse_create_with_deposit ( return NULL; } #endif + GNUNET_CRYPTO_eddsa_key_get_public (&deposit->coin_priv.eddsa_priv, + &coin_pub.eddsa_pub); TALER_wallet_purse_deposit_sign ( url, &pch->purse_pub, @@ -376,7 +382,9 @@ TALER_EXCHANGE_purse_create_with_deposit ( TALER_JSON_pack_denom_sig ("ub_sig", &deposit->denom_sig), GNUNET_JSON_pack_data_auto ("coin_sig", - &coin_sig)); + &coin_sig), + GNUNET_JSON_pack_data_auto ("coin_pub", + &coin_pub)); GNUNET_assert (0 == json_array_append_new (deposit_arr, jdeposit)); |