summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFlorian Dold <florian@dold.me>2020-12-02 21:45:20 +0100
committerFlorian Dold <florian@dold.me>2020-12-02 21:48:38 +0100
commitd4395945471dcdf8f9a7f6aaa906c4cbba9e18e1 (patch)
treec819f0ce4b56671df7b4109bb845ca66552a55a0
parent9a3377766d1140577e725c9520dedc3e6323798e (diff)
downloadexchange-test-blinding-logging.tar.gz
exchange-test-blinding-logging.tar.bz2
exchange-test-blinding-logging.zip
blind signature debug loggingtest-blinding-logging
-rw-r--r--src/exchange/taler-exchange-httpd_refreshes_reveal.c21
1 files changed, 21 insertions, 0 deletions
diff --git a/src/exchange/taler-exchange-httpd_refreshes_reveal.c b/src/exchange/taler-exchange-httpd_refreshes_reveal.c
index 6440f6dd..7c3b4793 100644
--- a/src/exchange/taler-exchange-httpd_refreshes_reveal.c
+++ b/src/exchange/taler-exchange-httpd_refreshes_reveal.c
@@ -378,6 +378,27 @@ refreshes_reveal_transaction (void *cls,
&pd));
rcd->coin_ev = pd.coin_ev;
rcd->coin_ev_size = pd.coin_ev_size;
+
+ {
+ /* XXX: This is debug code that leaks tons of memory. */
+ void *buffer;
+ size_t size;
+
+ size = GNUNET_CRYPTO_rsa_public_key_encode (rcd->dk->rsa_public_key,
+ &buffer);
+
+ GNUNET_log (GNUNET_ERROR_TYPE_INFO,
+ "RECONSTRUCT i=%u coin=%u m=%s bf=%s dp=%s ev=%s\n",
+ i,
+ j,
+ GNUNET_STRINGS_data_to_string_alloc (&c_hash, 64),
+ GNUNET_STRINGS_data_to_string_alloc (&ps.blinding_key,
+ 32),
+ GNUNET_STRINGS_data_to_string_alloc (buffer, size),
+ GNUNET_STRINGS_data_to_string_alloc (rcd->coin_ev,
+ rcd->coin_ev_size));
+
+ }
}
}
}