diff options
author | Christian Grothoff <christian@grothoff.org> | 2017-04-08 22:01:13 +0200 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2017-04-08 22:01:13 +0200 |
commit | 8e9d6c6fd1dce2dc04258e91673baa083b291600 (patch) | |
tree | b76aafa508f37c453c71314d161d6240095c31d8 /src/include | |
parent | 5f67d984b2c04fce8bfa471db3e48e52680cf613 (diff) | |
download | exchange-8e9d6c6fd1dce2dc04258e91673baa083b291600.tar.xz |
extend exchangedb API to allow storing DK revocation information
Diffstat (limited to 'src/include')
-rw-r--r-- | src/include/taler_exchangedb_plugin.h | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/src/include/taler_exchangedb_plugin.h b/src/include/taler_exchangedb_plugin.h index c1a7f8f63..40499b2b2 100644 --- a/src/include/taler_exchangedb_plugin.h +++ b/src/include/taler_exchangedb_plugin.h @@ -2012,6 +2012,43 @@ struct TALER_EXCHANGEDB_Plugin const struct GNUNET_HashCode *h_blind_ev, struct TALER_ReservePublicKeyP *reserve_pub); + + /** + * Store information that a denomination key was revoked + * in the database. + * + * @param cls closure + * @param session a session + * @param denom_pub_hash hash of the revoked denomination key + * @param master_sig signature affirming the revocation + * @return #GNUNET_OK on success, + * #GNUNET_NO if the entry already exists + * #GNUNET_SYSERR on DB errors + */ + int + (*insert_denomination_revocation)(void *cls, + struct TALER_EXCHANGEDB_Session *session, + const struct GNUNET_HashCode *denom_pub_hash, + const struct TALER_MasterSignatureP *master_sig); + /** + * Obtain information about a denomination key's revocation from + * the database. + * + * @param cls closure + * @param session a session + * @param denom_pub_hash hash of the revoked denomination key + * @param[out] master_sig signature affirming the revocation + * @return #GNUNET_OK on success, + * #GNUNET_NO no such entry exists + * #GNUNET_SYSERR on DB errors + */ + int + (*get_denomination_revocation)(void *cls, + struct TALER_EXCHANGEDB_Session *session, + const struct GNUNET_HashCode *denom_pub_hash, + struct TALER_MasterSignatureP *master_sig); + + }; |