summaryrefslogtreecommitdiff
path: root/src/include
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2022-05-07 23:27:56 +0200
committerChristian Grothoff <christian@grothoff.org>2022-05-07 23:27:56 +0200
commit2d84d7f6ddce69b5c1d4d44a16a9aa0663fd4eba (patch)
treeee179098d910dc959522cbf78f146f2983a3ee49 /src/include
parent4199e4438d2dac9b18e1e922dec72723bc6d7c04 (diff)
downloadexchange-2d84d7f6ddce69b5c1d4d44a16a9aa0663fd4eba.tar.gz
exchange-2d84d7f6ddce69b5c1d4d44a16a9aa0663fd4eba.tar.bz2
exchange-2d84d7f6ddce69b5c1d4d44a16a9aa0663fd4eba.zip
add function for purse status signing
Diffstat (limited to 'src/include')
-rw-r--r--src/include/taler_crypto_lib.h19
-rw-r--r--src/include/taler_signatures.h8
2 files changed, 26 insertions, 1 deletions
diff --git a/src/include/taler_crypto_lib.h b/src/include/taler_crypto_lib.h
index 1ee080abc..cf160c689 100644
--- a/src/include/taler_crypto_lib.h
+++ b/src/include/taler_crypto_lib.h
@@ -3976,6 +3976,25 @@ TALER_exchange_online_purse_merged_verify (
const struct TALER_ExchangeSignatureP *sig);
+enum TALER_ErrorCode
+TALER_exchange_purse_status_sign (
+ TALER_ExchangeSignCallback scb,
+ struct GNUNET_TIME_Timestamp merge_timestamp,
+ struct GNUNET_TIME_Timestamp deposit_timestamp,
+ const struct TALER_Amount *balance,
+ struct TALER_ExchangePublicKeyP *pub,
+ struct TALER_ExchangeSignatureP *sig);
+
+
+enum GNUNET_GenericReturnValue
+TALER_exchange_purse_status_verify (
+ struct GNUNET_TIME_Timestamp merge_timestamp,
+ struct GNUNET_TIME_Timestamp deposit_timestamp,
+ const struct TALER_Amount *balance,
+ const struct TALER_ExchangePublicKeyP *exchange_pub,
+ const struct TALER_ExchangeSignatureP *exchange_sig);
+
+
/* ********************* offline signing ************************** */
diff --git a/src/include/taler_signatures.h b/src/include/taler_signatures.h
index 9897082d8..57c84b50b 100644
--- a/src/include/taler_signatures.h
+++ b/src/include/taler_signatures.h
@@ -189,6 +189,13 @@
*/
#define TALER_SIGNATURE_EXCHANGE_CONFIRM_PURSE_MERGED 1046
+/**
+ * Purpose for the state of a purse, signed by the exchange's signing
+ * key.
+ */
+#define TALER_SIGNATURE_EXCHANGE_PURSE_STATUS 1047
+
+
/**********************/
/* Auditor signatures */
/**********************/
@@ -383,5 +390,4 @@
#define TALER_SIGNATURE_SYNC_BACKUP_UPLOAD 1450
-
#endif