diff options
author | Christian Grothoff <grothoff@gnunet.org> | 2022-03-20 02:39:28 +0100 |
---|---|---|
committer | Christian Grothoff <grothoff@gnunet.org> | 2022-03-20 02:39:28 +0100 |
commit | 1bb5a77c8da3e460b45b3faa49ed10ab6ae9190d (patch) | |
tree | cc747d8392222aff169f218d5d3cb9164bf0d863 /src/include/taler_signatures.h | |
parent | c83892ba29526280431f781b3fae16ee24beac39 (diff) |
add new reserve status/history signatures
Diffstat (limited to 'src/include/taler_signatures.h')
-rw-r--r-- | src/include/taler_signatures.h | 55 |
1 files changed, 55 insertions, 0 deletions
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 */ @@ -444,6 +454,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. */ |