From 1ee69f6f1d93349a3e576a86c1d93d23ccec28ce Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Thu, 13 Oct 2022 22:43:22 +0200 Subject: -towards returning reserve open deposits in coin history --- src/include/taler_exchangedb_plugin.h | 38 ++++++++++++++++++++++++++++++++++- 1 file changed, 37 insertions(+), 1 deletion(-) (limited to 'src/include/taler_exchangedb_plugin.h') diff --git a/src/include/taler_exchangedb_plugin.h b/src/include/taler_exchangedb_plugin.h index d361d5393..0df32241c 100644 --- a/src/include/taler_exchangedb_plugin.h +++ b/src/include/taler_exchangedb_plugin.h @@ -1788,6 +1788,31 @@ struct TALER_EXCHANGEDB_PurseDepositListEntry }; +/** + * Information about a /reserves/$RID/open operation in a coin transaction history. + */ +struct TALER_EXCHANGEDB_ReserveOpenListEntry +{ + + /** + * Signature of the reserve. + */ + struct TALER_ReserveSignatureP reserve_sig; + + /** + * Contribution of the coin to the open fee, including + * deposit fee. + */ + struct TALER_Amount coin_contribution; + + /** + * Signature by the coin affirming the open deposit. + */ + struct TALER_CoinSpendSignatureP coin_sig; + +}; + + /** * Information about a /purses/$PID/deposit operation. */ @@ -1947,7 +1972,12 @@ enum TALER_EXCHANGEDB_TransactionType /** * Purse deposit operation. */ - TALER_EXCHANGEDB_TT_PURSE_DEPOSIT = 6 + TALER_EXCHANGEDB_TT_PURSE_DEPOSIT = 6, + + /** + * Reserve open deposit operation. + */ + TALER_EXCHANGEDB_TT_RESERVE_OPEN = 7 }; @@ -2023,6 +2053,12 @@ struct TALER_EXCHANGEDB_TransactionList */ struct TALER_EXCHANGEDB_PurseDepositListEntry *purse_deposit; + /** + * Coin was used to pay to open a reserve. + * (#TALER_EXCHANGEDB_TT_RESERVE_OPEN) + */ + struct TALER_EXCHANGEDB_ReserveOpenListEntry *reserve_open; + } details; }; -- cgit v1.2.3