diff options
Diffstat (limited to 'src/include')
-rw-r--r-- | src/include/taler_crypto_lib.h | 19 | ||||
-rw-r--r-- | src/include/taler_signatures.h | 8 |
2 files changed, 26 insertions, 1 deletions
diff --git a/src/include/taler_crypto_lib.h b/src/include/taler_crypto_lib.h index 1ee080ab..cf160c68 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 9897082d..57c84b50 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 |