summaryrefslogtreecommitdiff
path: root/src/include/taler_crypto_lib.h
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/taler_crypto_lib.h
parent4199e4438d2dac9b18e1e922dec72723bc6d7c04 (diff)
downloadexchange-2d84d7f6ddce69b5c1d4d44a16a9aa0663fd4eba.tar.gz
exchange-2d84d7f6ddce69b5c1d4d44a16a9aa0663fd4eba.tar.bz2
exchange-2d84d7f6ddce69b5c1d4d44a16a9aa0663fd4eba.zip
add function for purse status signing
Diffstat (limited to 'src/include/taler_crypto_lib.h')
-rw-r--r--src/include/taler_crypto_lib.h19
1 files changed, 19 insertions, 0 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 ************************** */