aboutsummaryrefslogtreecommitdiff
path: root/src/exchange-lib/exchange_api_handle.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2017-09-26 15:05:27 +0200
committerChristian Grothoff <christian@grothoff.org>2017-09-26 15:05:27 +0200
commita0d410e01b77373fc2ee2d60d082d470c3c75474 (patch)
treef040313b1d84daf5ed7460779b4544d96fdfa619 /src/exchange-lib/exchange_api_handle.c
parentd36a2008e83ffea35dbbcbe48c221843de875b46 (diff)
fix mapping of auditor sigs to DKs, avoid one hash operation by caching hash value
Diffstat (limited to 'src/exchange-lib/exchange_api_handle.c')
-rw-r--r--src/exchange-lib/exchange_api_handle.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/exchange-lib/exchange_api_handle.c b/src/exchange-lib/exchange_api_handle.c
index fc48060ce..e89448d6e 100644
--- a/src/exchange-lib/exchange_api_handle.c
+++ b/src/exchange-lib/exchange_api_handle.c
@@ -472,6 +472,7 @@ parse_json_auditor (struct TALER_EXCHANGE_AuditorInformation *auditor,
TALER_amount_hton (&kv.fee_refund,
&dk->fee_refund);
kv.denom_hash = dk->h_key;
+
if (GNUNET_OK !=
GNUNET_CRYPTO_eddsa_verify (TALER_SIGNATURE_AUDITOR_EXCHANGE_KEYS,
&kv.purpose,