diff options
author | Christian Grothoff <christian@grothoff.org> | 2021-05-25 21:34:18 +0200 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2021-05-25 21:34:18 +0200 |
commit | 068068f40fc97f09525aaccf560a1be352abd159 (patch) | |
tree | b4331505e2c538d591a755352aaeee912d6cac6f /src/include/taler_signatures.h | |
parent | 0d1ab614c06f60f79de75a0f2ec30c33a69820dd (diff) | |
download | exchange-068068f40fc97f09525aaccf560a1be352abd159.tar.xz |
return signed error message with HTTP_GONE status if denomination is not currently valid for specified operation (#6889)
Diffstat (limited to 'src/include/taler_signatures.h')
-rw-r--r-- | src/include/taler_signatures.h | 38 |
1 files changed, 38 insertions, 0 deletions
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 */ /**********************/ @@ -1544,6 +1551,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. */ |