From 4b5efa4e8160634fc6cefce8dcedb38d71f76cc6 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Tue, 4 Apr 2017 16:27:27 +0200 Subject: towards supporting #3887 in the auditor --- src/include/taler_exchangedb_plugin.h | 20 ++++++-------------- 1 file changed, 6 insertions(+), 14 deletions(-) (limited to 'src/include/taler_exchangedb_plugin.h') diff --git a/src/include/taler_exchangedb_plugin.h b/src/include/taler_exchangedb_plugin.h index f6d78aba9..c1a7f8f63 100644 --- a/src/include/taler_exchangedb_plugin.h +++ b/src/include/taler_exchangedb_plugin.h @@ -153,9 +153,9 @@ struct TALER_EXCHANGEDB_Payback { /** - * Public key of the coin that was paid back. + * Information about the coin that was paid back. */ - struct TALER_CoinSpendPublicKeyP coin_pub; + struct TALER_CoinPublicInfo coin; /** * Blinding factor supplied to prove to the exchange that @@ -184,12 +184,6 @@ struct TALER_EXCHANGEDB_Payback */ struct GNUNET_TIME_Absolute timestamp; - /** - * Public key representing the denomination of - * @e coin_pub. - */ - struct TALER_DenominationPublicKey denom_pub; - }; @@ -914,9 +908,8 @@ typedef int * @param timestamp when did we receive the payback request * @param amount how much should be added back to the reserve * @param reserve_pub public key of the reserve - * @param coin_pub public key of the coin + * @param coin public information about the coin * @param coin_sig signature with @e coin_pub of type #TALER_SIGNATURE_WALLET_COIN_PAYBACK - * @param h_denom_pub hash of the denomination key of the coin * @param coin_blind blinding factor used to blind the coin * @return #GNUNET_OK to continue to iterate, #GNUNET_SYSERR to stop */ @@ -926,9 +919,8 @@ typedef int struct GNUNET_TIME_Absolute timestamp, const struct TALER_Amount *amount, const struct TALER_ReservePublicKeyP *reserve_pub, - const struct TALER_CoinSpendPublicKeyP *coin_pub, + const struct TALER_CoinPublicInfo *coin, const struct TALER_CoinSpendSignatureP *coin_sig, - const struct GNUNET_HashCode *h_denom_pub, const struct TALER_DenominationBlindingKeyP *coin_blind); @@ -1979,7 +1971,7 @@ struct TALER_EXCHANGEDB_Plugin * @param cls closure * @param session database connection * @param reserve_pub public key of the reserve that is being refunded - * @param coin_pub public key of the coin + * @param coin public information about a coin * @param coin_sig signature of the coin of type #TALER_SIGNATURE_WALLET_COIN_PAYBACK * @param coin_blind blinding key of the coin * @param h_blind_ev blinded envelope, as calculated by the exchange @@ -1994,7 +1986,7 @@ struct TALER_EXCHANGEDB_Plugin (*insert_payback_request)(void *cls, struct TALER_EXCHANGEDB_Session *session, const struct TALER_ReservePublicKeyP *reserve_pub, - const struct TALER_CoinSpendPublicKeyP *coin_pub, + const struct TALER_CoinPublicInfo *coin, const struct TALER_CoinSpendSignatureP *coin_sig, const struct TALER_DenominationBlindingKeyP *coin_blind, const struct TALER_Amount *amount, -- cgit v1.2.3