diff options
author | Christian Grothoff <christian@grothoff.org> | 2017-04-03 16:40:31 +0200 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2017-04-03 16:40:31 +0200 |
commit | 29a2f9b345ecd8a6c062b3b3cfa719a8a4ec2a08 (patch) | |
tree | 5b8849767e0eb1941e03a99ef3eaa53fb6e427d7 /src/include/taler_signatures.h | |
parent | 5b867c4b8ece4b4f92ff206fa75a4ea29d870221 (diff) | |
download | exchange-29a2f9b345ecd8a6c062b3b3cfa719a8a4ec2a08.tar.xz |
implement rest of exchange logic for #3887 (return payback information in reserve and coin histories)
Diffstat (limited to 'src/include/taler_signatures.h')
-rw-r--r-- | src/include/taler_signatures.h | 48 |
1 files changed, 44 insertions, 4 deletions
diff --git a/src/include/taler_signatures.h b/src/include/taler_signatures.h index 2d0e8bb37..c58ea1915 100644 --- a/src/include/taler_signatures.h +++ b/src/include/taler_signatures.h @@ -131,6 +131,11 @@ */ #define TALER_SIGNATURE_EXCHANGE_CONFIRM_PAYBACK 1039 +/** + * Signature where the Exchange confirms it closed a reserve. + */ +#define TALER_SIGNATURE_EXCHANGE_RESERVE_CLOSED 1040 + /*********************/ /* Wallet signatures */ @@ -1170,15 +1175,16 @@ struct TALER_PaybackConfirmationPS { /** - * Purpose is #TALER_SIGNATURE_EXCHANGE_CONFIRM_PAYBACK + * Purpose is #TALER_SIGNATURE_EXCHANGE_CONFIRM_PAYBACK */ struct GNUNET_CRYPTO_EccSignaturePurpose purpose; /** - * By what deadline does the exchange promise to initiate - * the wire transfer? + * When did the exchange receive the payback request? + * Indirectly determines when the wire transfer is (likely) + * to happen. */ - struct GNUNET_TIME_AbsoluteNBO payback_deadline; + struct GNUNET_TIME_AbsoluteNBO timestamp; /** * How much of the coin's value will the exchange transfer? @@ -1198,6 +1204,40 @@ struct TALER_PaybackConfirmationPS }; +/** + * Response by which the exchange affirms that it has + * closed a reserve and send back the funds. + */ +struct TALER_ReserveCloseConfirmationPS +{ + + /** + * Purpose is #TALER_SIGNATURE_EXCHANGE_RESERVE_CLOSED + */ + struct GNUNET_CRYPTO_EccSignaturePurpose purpose; + + /** + * When did the exchange initiate the wire transfer. + */ + struct GNUNET_TIME_AbsoluteNBO timestamp; + + /** + * How much did the exchange send? + */ + struct TALER_AmountNBO closing_amount; + + /** + * Public key of the reserve that received the payback. + */ + struct TALER_ReservePublicKeyP reserve_pub; + + /** + * Hash of the receiver's bank account. + */ + struct GNUNET_HashCode h_wire; +}; + + GNUNET_NETWORK_STRUCT_END #endif |