diff options
Diffstat (limited to 'src/mint/mint.h')
-rw-r--r-- | src/mint/mint.h | 70 |
1 files changed, 1 insertions, 69 deletions
diff --git a/src/mint/mint.h b/src/mint/mint.h index 202de94d3..a0309e9ea 100644 --- a/src/mint/mint.h +++ b/src/mint/mint.h | |||
@@ -15,7 +15,7 @@ | |||
15 | */ | 15 | */ |
16 | /** | 16 | /** |
17 | * @file mint.h | 17 | * @file mint.h |
18 | * @brief Common functionality for the mint | 18 | * @brief Common structs passed all over the mint logic |
19 | * @author Florian Dold | 19 | * @author Florian Dold |
20 | * @author Benedikt Mueller | 20 | * @author Benedikt Mueller |
21 | */ | 21 | */ |
@@ -23,10 +23,8 @@ | |||
23 | #define _MINT_H | 23 | #define _MINT_H |
24 | 24 | ||
25 | #include <gnunet/gnunet_util_lib.h> | 25 | #include <gnunet/gnunet_util_lib.h> |
26 | #include <gnunet/gnunet_common.h> | ||
27 | #include <jansson.h> | 26 | #include <jansson.h> |
28 | #include "taler_util.h" | 27 | #include "taler_util.h" |
29 | #include "taler_signatures.h" | ||
30 | 28 | ||
31 | 29 | ||
32 | /** | 30 | /** |
@@ -62,7 +60,6 @@ struct TALER_CoinPublicInfo | |||
62 | }; | 60 | }; |
63 | 61 | ||
64 | 62 | ||
65 | |||
66 | /** | 63 | /** |
67 | * Information we keep for a withdrawn coin to reproduce | 64 | * Information we keep for a withdrawn coin to reproduce |
68 | * the /withdraw operation if needed, and to have proof | 65 | * the /withdraw operation if needed, and to have proof |
@@ -160,25 +157,6 @@ struct Deposit | |||
160 | 157 | ||
161 | 158 | ||
162 | 159 | ||
163 | /** | ||
164 | * FIXME | ||
165 | */ | ||
166 | struct KnownCoin | ||
167 | { | ||
168 | struct TALER_CoinPublicInfo public_info; | ||
169 | |||
170 | /** | ||
171 | * Refreshing session, only valid if | ||
172 | * is_refreshed==1. | ||
173 | */ | ||
174 | struct GNUNET_CRYPTO_EddsaPublicKey refresh_session_pub; | ||
175 | |||
176 | struct TALER_Amount expended_balance; | ||
177 | |||
178 | int is_refreshed; | ||
179 | |||
180 | }; | ||
181 | |||
182 | 160 | ||
183 | /** | 161 | /** |
184 | * Global information for a refreshing session. | 162 | * Global information for a refreshing session. |
@@ -280,50 +258,4 @@ struct RefreshCommitCoin | |||
280 | 258 | ||
281 | 259 | ||
282 | 260 | ||
283 | |||
284 | |||
285 | |||
286 | /** | ||
287 | * Reserve row. Corresponds to table 'reserves' in the mint's | ||
288 | * database. FIXME: not sure this is how we want to store this | ||
289 | * information. Also, may currently used in different ways in the | ||
290 | * code, so we might need to separate the struct into different ones | ||
291 | * depending on the context it is used in. | ||
292 | */ | ||
293 | struct Reserve | ||
294 | { | ||
295 | /** | ||
296 | * Signature over the purse. | ||
297 | * Only valid if (blind_session_missing==GNUNET_YES). | ||
298 | */ | ||
299 | struct GNUNET_CRYPTO_EddsaSignature status_sig; | ||
300 | /** | ||
301 | * Signature with purpose TALER_SIGNATURE_PURSE. | ||
302 | * Only valid if (blind_session_missing==GNUNET_YES). | ||
303 | */ | ||
304 | struct GNUNET_CRYPTO_EccSignaturePurpose status_sig_purpose; | ||
305 | /** | ||
306 | * Signing key used to sign the purse. | ||
307 | * Only valid if (blind_session_missing==GNUNET_YES). | ||
308 | */ | ||
309 | struct GNUNET_CRYPTO_EddsaPublicKey status_sign_pub; | ||
310 | /** | ||
311 | * Withdraw public key, identifies the purse. | ||
312 | * Only the customer knows the corresponding private key. | ||
313 | */ | ||
314 | struct GNUNET_CRYPTO_EddsaPublicKey reserve_pub; | ||
315 | /** | ||
316 | * Remaining balance in the purse. | ||
317 | */ | ||
318 | struct TALER_AmountNBO balance; | ||
319 | |||
320 | /** | ||
321 | * Expiration date for the purse. | ||
322 | */ | ||
323 | struct GNUNET_TIME_AbsoluteNBO expiration; | ||
324 | }; | ||
325 | |||
326 | |||
327 | |||
328 | |||
329 | #endif /* _MINT_H */ | 261 | #endif /* _MINT_H */ |