summaryrefslogtreecommitdiff
path: root/src/include/taler_signatures.h
diff options
context:
space:
mode:
authorChristian Grothoff <grothoff@gnunet.org>2022-03-20 02:39:28 +0100
committerChristian Grothoff <grothoff@gnunet.org>2022-03-20 02:39:28 +0100
commit1bb5a77c8da3e460b45b3faa49ed10ab6ae9190d (patch)
treecc747d8392222aff169f218d5d3cb9164bf0d863 /src/include/taler_signatures.h
parentc83892ba29526280431f781b3fae16ee24beac39 (diff)
downloadexchange-1bb5a77c8da3e460b45b3faa49ed10ab6ae9190d.tar.gz
exchange-1bb5a77c8da3e460b45b3faa49ed10ab6ae9190d.tar.bz2
exchange-1bb5a77c8da3e460b45b3faa49ed10ab6ae9190d.zip
add new reserve status/history signatures
Diffstat (limited to 'src/include/taler_signatures.h')
-rw-r--r--src/include/taler_signatures.h55
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.
*/