From 2dcaffe4510410e568d637c1e251e230e2df41d9 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Mon, 8 May 2017 12:57:00 +0200 Subject: move responsibility of converting to wire subject to reserve_pub into wire plugin --- src/include/taler_wire_plugin.h | 31 ++++++++++++++++++++++++++++++- 1 file changed, 30 insertions(+), 1 deletion(-) (limited to 'src/include') diff --git a/src/include/taler_wire_plugin.h b/src/include/taler_wire_plugin.h index 5b2bec3c0..4134afc00 100644 --- a/src/include/taler_wire_plugin.h +++ b/src/include/taler_wire_plugin.h @@ -41,6 +41,35 @@ typedef void size_t buf_size); +/** + * Details about a valid wire transfer to the exchange. + * It is the plugin's responsibility to filter and undo + * invalid transfers. + */ +struct TALER_WIRE_TransferDetails +{ + /** + * Amount that was transferred + */ + struct TALER_Amount amount; + + /** + * Time of the the transfer + */ + struct GNUNET_TIME_Absolute execution_date; + + /** + * Reserve public key that was encoded in the wire transfer subject + */ + struct TALER_ReservePublicKeyP reserve_pub; + + /** + * The other account that was involved + */ + json_t *account_details; +}; + + /** * Callbacks of this type are used to serve the result of asking * the bank for the transaction history. @@ -57,7 +86,7 @@ typedef int enum TALER_BANK_Direction dir, const void *row_off, size_t row_off_size, - const struct TALER_BANK_TransferDetails *details); + const struct TALER_WIRE_TransferDetails *details); /** -- cgit v1.2.3