aboutsummaryrefslogtreecommitdiff
path: root/src/mint-lib
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2015-08-09 19:31:59 +0200
committerChristian Grothoff <christian@grothoff.org>2015-08-09 19:31:59 +0200
commitcd4018e61a7e6abea2ba2620376a8e5590a77c22 (patch)
treeee62c1f3fa3f1406dcb8e38c81e6d8a12aed3be1 /src/mint-lib
parent2daaeee447be052625f0389996e639fb40191bf2 (diff)
fix signature purpose used, log session hash for diagnostics
Diffstat (limited to 'src/mint-lib')
-rw-r--r--src/mint-lib/mint_api_refresh.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/mint-lib/mint_api_refresh.c b/src/mint-lib/mint_api_refresh.c
index 294ca06e9..36c19a16e 100644
--- 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,