From 7d43ad56d3a43cc38b4ca0278145b237ca8e4bbb Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Tue, 23 Jul 2019 20:27:41 +0200 Subject: implement postges_get_old_coin_by_h_blind for #5777 --- src/include/taler_exchangedb_plugin.h | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) (limited to 'src/include') 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 @@ -2429,6 +2429,23 @@ struct TALER_EXCHANGEDB_Plugin struct TALER_ReservePublicKeyP *reserve_pub); + /** + * 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. -- cgit v1.2.3