summaryrefslogtreecommitdiff
path: root/src/include
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2019-07-23 20:27:41 +0200
committerChristian Grothoff <christian@grothoff.org>2019-07-23 20:27:48 +0200
commit7d43ad56d3a43cc38b4ca0278145b237ca8e4bbb (patch)
tree2f8bbd08a1669e5aacbfaa28bfad8f8d970c7654 /src/include
parent334498a29802b9fa6e03273d81e53a6bb26f5d00 (diff)
downloadexchange-7d43ad56d3a43cc38b4ca0278145b237ca8e4bbb.tar.gz
exchange-7d43ad56d3a43cc38b4ca0278145b237ca8e4bbb.tar.bz2
exchange-7d43ad56d3a43cc38b4ca0278145b237ca8e4bbb.zip
implement postges_get_old_coin_by_h_blind for #5777
Diffstat (limited to 'src/include')
-rw-r--r--src/include/taler_exchangedb_plugin.h17
1 files changed, 17 insertions, 0 deletions
diff --git a/src/include/taler_exchangedb_plugin.h b/src/include/taler_exchangedb_plugin.h
index 8450fb04f..104ae8059 100644
--- a/src/include/taler_exchangedb_plugin.h
+++ b/src/include/taler_exchangedb_plugin.h
@@ -2430,6 +2430,23 @@ struct TALER_EXCHANGEDB_Plugin
/**
+ * Obtain information about which old coin a coin was refreshed
+ * given the hash of the blinded (fresh) coin.
+ *
+ * @param cls closure
+ * @param session a session
+ * @param h_blind_ev hash of the blinded coin
+ * @param[out] old_coin_pub set to information about the old coin (on success only)
+ * @return transaction status code
+ */
+ enum GNUNET_DB_QueryStatus
+ (*get_old_coin_by_h_blind)(void *cls,
+ struct TALER_EXCHANGEDB_Session *session,
+ const struct GNUNET_HashCode *h_blind_ev,
+ struct TALER_CoinSpendPublicKeyP *old_coin_pub);
+
+
+ /**
* Store information that a denomination key was revoked
* in the database.
*