summaryrefslogtreecommitdiff
path: root/src/exchange/taler-exchange-httpd_db.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2017-03-29 14:43:54 +0200
committerChristian Grothoff <christian@grothoff.org>2017-03-29 14:43:54 +0200
commitb38134ea4a2a90fdce6d9f661ed58df47a17bcfe (patch)
tree73c8fea2ad079d468032e20e67fce882c1783247 /src/exchange/taler-exchange-httpd_db.c
parent8d9dc14227350eb93f89c56c774ed377b633bc88 (diff)
downloadexchange-b38134ea4a2a90fdce6d9f661ed58df47a17bcfe.tar.gz
exchange-b38134ea4a2a90fdce6d9f661ed58df47a17bcfe.tar.bz2
exchange-b38134ea4a2a90fdce6d9f661ed58df47a17bcfe.zip
implement /payback parsing and signature verification
Diffstat (limited to 'src/exchange/taler-exchange-httpd_db.c')
-rw-r--r--src/exchange/taler-exchange-httpd_db.c23
1 files changed, 23 insertions, 0 deletions
diff --git a/src/exchange/taler-exchange-httpd_db.c b/src/exchange/taler-exchange-httpd_db.c
index c3bc8ae48..cac700ab8 100644
--- a/src/exchange/taler-exchange-httpd_db.c
+++ b/src/exchange/taler-exchange-httpd_db.c
@@ -2256,4 +2256,27 @@ TEH_DB_execute_track_transaction (struct MHD_Connection *connection,
}
+/**
+ * Execute a "/payback". The validity of the coin and signature have
+ * already been checked. The database must now check that the coin is
+ * not (double) spent, and execute the transaction (record details,
+ * generate success or failure response).
+ *
+ * @param connection the MHD connection to handle
+ * @param coin information about the coin
+ * @param coin_bks blinding data of the coin (to be checked)
+ * @param coin_sig signature of the coin
+ * @return MHD result code
+ */
+int
+TEH_DB_execute_payback (struct MHD_Connection *connection,
+ const struct TALER_CoinPublicInfo *coin,
+ const struct TALER_DenominationBlindingKeyP *coin_bks,
+ const struct TALER_CoinSpendSignatureP *coin_sig)
+{
+ GNUNET_break (0); /* not implemented (#3887) */
+ return MHD_NO;
+}
+
+
/* end of taler-exchange-httpd_db.c */