summaryrefslogtreecommitdiff
path: root/src/include/taler_mintdb_plugin.h
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2015-06-12 10:28:17 +0200
committerChristian Grothoff <christian@grothoff.org>2015-06-12 10:28:17 +0200
commit3724e3d1660b4a9a31c2a7e30d51c3f1734cba89 (patch)
tree607dc8b0d4ab0d08c5896c2d7be1c9a5f34df824 /src/include/taler_mintdb_plugin.h
parent548e19e9fdeec66cf8a3f964f43a8605a01979df (diff)
downloadexchange-3724e3d1660b4a9a31c2a7e30d51c3f1734cba89.tar.gz
exchange-3724e3d1660b4a9a31c2a7e30d51c3f1734cba89.tar.bz2
exchange-3724e3d1660b4a9a31c2a7e30d51c3f1734cba89.zip
implement postgres_get_denomination_info (#3808)
Diffstat (limited to 'src/include/taler_mintdb_plugin.h')
-rw-r--r--src/include/taler_mintdb_plugin.h35
1 files changed, 23 insertions, 12 deletions
diff --git a/src/include/taler_mintdb_plugin.h b/src/include/taler_mintdb_plugin.h
index 2eeead26f..25d747a2d 100644
--- a/src/include/taler_mintdb_plugin.h
+++ b/src/include/taler_mintdb_plugin.h
@@ -667,14 +667,9 @@ struct TALER_MINTDB_Plugin
/**
- * Insert a denomination key.
- *
- * FIXME: Note that the main mint currently does NOT use this API at
- * all. Furthermore, the function to retrieve denomination keys
- * from the DB is still missing. The main mint should check if its
- * denomination keys are in the DB, and if not, insert them (when it
- * loads them). The auditor will (presumably) need the denomination
- * key information to audit the DB. (#3808).
+ * Insert information about a denomination key and in particular
+ * the properties (value, fees, expiration times) the coins signed
+ * with this key have.
*
* @param cls the @e cls of this struct with the plugin-specific state
* @param sesssion connection to use
@@ -683,10 +678,26 @@ struct TALER_MINTDB_Plugin
* @return #GNUNET_OK on success; #GNUNET_SYSERR on failure
*/
int
- (*insert_denomination) (void *cls,
- struct TALER_MINTDB_Session *session,
- const struct TALER_DenominationPublicKey *denom_pub,
- const struct TALER_DenominationKeyValidityPS *issue);
+ (*insert_denomination_info) (void *cls,
+ struct TALER_MINTDB_Session *session,
+ const struct TALER_DenominationPublicKey *denom_pub,
+ const struct TALER_DenominationKeyValidityPS *issue);
+
+
+ /**
+ * Fetch information about a denomination key.
+ *
+ * @param cls the @e cls of this struct with the plugin-specific state
+ * @param sesssion connection to use
+ * @param denom_pub the public key used for signing coins of this denomination
+ * @param[out] issue set to issue information with value, fees and other info about the coin
+ * @return #GNUNET_OK on success; #GNUNET_NO if no record was found, #GNUNET_SYSERR on failure
+ */
+ int
+ (*get_denomination_info) (void *cls,
+ struct TALER_MINTDB_Session *session,
+ const struct TALER_DenominationPublicKey *denom_pub,
+ struct TALER_DenominationKeyValidityPS *issue);
/**