From daa7fdcfb1053bdd943ad7cd1bd8eb623d1c9157 Mon Sep 17 00:00:00 2001 From: Lucien Heuzeveldt Date: Mon, 10 Jan 2022 22:09:35 +0100 Subject: implement spend --- src/exchange/taler-exchange-httpd_deposit.c | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/exchange/taler-exchange-httpd_deposit.c') diff --git a/src/exchange/taler-exchange-httpd_deposit.c b/src/exchange/taler-exchange-httpd_deposit.c index 84741b5c3..11f94f2c5 100644 --- a/src/exchange/taler-exchange-httpd_deposit.c +++ b/src/exchange/taler-exchange-httpd_deposit.c @@ -356,6 +356,14 @@ TEH_handler_deposit (struct MHD_Connection *connection, TALER_EC_EXCHANGE_GENERIC_DENOMINATION_REVOKED, "DEPOSIT"); } + if (dk->denom_pub.cipher != deposit.coin.denom_sig.cipher) + { + /* denomination cipher and denomination signature cipher not the same */ + GNUNET_JSON_parse_free (spec); + return TEH_RESPONSE_reply_unknown_denom_pub_hash ( + connection, + &deposit.coin.denom_pub_hash); + } deposit.deposit_fee = dk->meta.fee_deposit; /* check coin signature */ -- cgit v1.2.3