From 068068f40fc97f09525aaccf560a1be352abd159 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Tue, 25 May 2021 21:34:18 +0200 Subject: return signed error message with HTTP_GONE status if denomination is not currently valid for specified operation (#6889) --- src/include/taler_signatures.h | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) (limited to 'src/include/taler_signatures.h') diff --git a/src/include/taler_signatures.h b/src/include/taler_signatures.h index 1a64d52f6..6ed71153d 100644 --- a/src/include/taler_signatures.h +++ b/src/include/taler_signatures.h @@ -161,6 +161,13 @@ #define TALER_SIGNATURE_EXCHANGE_AFFIRM_DENOM_UNKNOWN 1042 +/** + * Signature where the Exchange confirms that it does not consider a denomination valid for the given operation + * at this time. + */ +#define TALER_SIGNATURE_EXCHANGE_AFFIRM_DENOM_EXPIRED 1043 + + /**********************/ /* Auditor signatures */ /**********************/ @@ -1543,6 +1550,37 @@ struct TALER_DenominationUnknownAffirmationPS }; +/** + * Response by which the exchange affirms that it does not + * currently consider the given denomination to be valid + * for the requested operation. + */ +struct TALER_DenominationExpiredAffirmationPS +{ + + /** + * Purpose is #TALER_SIGNATURE_EXCHANGE_AFFIRM_DENOM_EXPIRED + */ + struct GNUNET_CRYPTO_EccSignaturePurpose purpose; + + /** + * When did the exchange sign this message. + */ + struct GNUNET_TIME_AbsoluteNBO timestamp; + + /** + * Name of the operation that is not allowed at this time. Might NOT be 0-terminated, but is padded with 0s. + */ + char operation[8]; + + /** + * Hash of the public denomination key we do not know. + */ + struct GNUNET_HashCode h_denom_pub; + +}; + + /** * Response by which the exchange affirms that it has * closed a reserve and send back the funds. -- cgit v1.2.3