From 1bb5a77c8da3e460b45b3faa49ed10ab6ae9190d Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Sun, 20 Mar 2022 02:39:28 +0100 Subject: add new reserve status/history signatures --- src/include/taler_signatures.h | 55 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 55 insertions(+) (limited to 'src/include/taler_signatures.h') diff --git a/src/include/taler_signatures.h b/src/include/taler_signatures.h index 5c5aaeebf..2aa826200 100644 --- a/src/include/taler_signatures.h +++ b/src/include/taler_signatures.h @@ -283,6 +283,16 @@ */ #define TALER_SIGNATURE_WALLET_AGE_ATTESTATION 1207 +/** + * Request full reserve history and pay for it. + */ +#define TALER_SIGNATURE_WALLET_RESERVE_HISTORY 1208 + +/** + * Request detailed account status (for free). + */ +#define TALER_SIGNATURE_WALLET_RESERVE_STATUS 1209 + /******************************/ /* Security module signatures */ @@ -443,6 +453,51 @@ struct TALER_LinkDataPS }; +/** + * Response by which a wallet requests an account status. + */ +struct TALER_ReserveStatusRequestPS +{ + + /** + * Purpose is #TALER_SIGNATURE_WALLET_RESERVE_STATUS + */ + struct GNUNET_CRYPTO_EccSignaturePurpose purpose; + + /** + * When did the wallet make the requst. + */ + struct GNUNET_TIME_TimestampNBO request_timestamp; + +}; + + +/** + * Response by which a wallet requests a full + * reserve history and indicates it is willing + * to pay for it. + */ +struct TALER_ReserveHistoryRequestPS +{ + + /** + * Purpose is #TALER_SIGNATURE_WALLET_RESERVE_HISTORY + */ + struct GNUNET_CRYPTO_EccSignaturePurpose purpose; + + /** + * When did the wallet make the requst. + */ + struct GNUNET_TIME_TimestampNBO request_timestamp; + + /** + * How much does the exchange charge for the history? + */ + struct TALER_AmountNBO history_fee; + +}; + + /** * @brief Format used for to generate the signature on a request to withdraw * coins from a reserve. -- cgit v1.2.3