exchange

Base system with REST service to issue digital coins, run by the payment service provider
Log | Files | Refs | Submodules | README | LICENSE

commit cd4018e61a7e6abea2ba2620376a8e5590a77c22
parent 2daaeee447be052625f0389996e639fb40191bf2
Author: Christian Grothoff <christian@grothoff.org>
Date:   Sun,  9 Aug 2015 19:31:59 +0200

fix signature purpose used, log session hash for diagnostics

Diffstat:
Msrc/mint-lib/mint_api_refresh.c | 7+++++--
1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/src/mint-lib/mint_api_refresh.c b/src/mint-lib/mint_api_refresh.c @@ -1339,8 +1339,8 @@ melted_coin_to_json (const struct GNUNET_HashCode *melt_session_hash, struct TALER_CoinSpendSignatureP confirm_sig; struct TALER_RefreshMeltCoinAffirmationPS melt; - melt.purpose.purpose = htonl (TALER_SIGNATURE_MINT_CONFIRM_MELT); - melt.purpose.size = htonl (sizeof (melt)); + melt.purpose.purpose = htonl (TALER_SIGNATURE_WALLET_COIN_MELT); + melt.purpose.size = htonl (sizeof (struct TALER_RefreshMeltCoinAffirmationPS)); melt.session_hash = *melt_session_hash; TALER_amount_hton (&melt.amount_with_fee, &mc->melt_amount_with_fee); @@ -1351,6 +1351,9 @@ melted_coin_to_json (const struct GNUNET_HashCode *melt_session_hash, GNUNET_CRYPTO_eddsa_sign (&mc->coin_priv.eddsa_priv, &melt.purpose, &confirm_sig.eddsa_signature); + fprintf (stderr, + "Signing hash %s\n", + GNUNET_h2s (melt_session_hash)); return json_pack ("{s:o, s:o, s:o, s:o, s:o}", "coin_pub", TALER_json_from_data (&melt.coin_pub,