summaryrefslogtreecommitdiff
path: root/src/mintdb/perf_taler_mintdb_init.h
diff options
context:
space:
mode:
authorFournier Nicolas <nicolas.fournier@ensta-paristech.fr>2015-07-15 16:28:12 +0200
committerFournier Nicolas <nicolas.fournier@ensta-paristech.fr>2015-07-15 16:28:12 +0200
commit3a4052d16d2b426a1513fd10fdcdbb9fdd13a526 (patch)
treeddebd708af55520fbbb6649de98a993141077b7f /src/mintdb/perf_taler_mintdb_init.h
parenteeafe9a8dc0a765ea2daebea686acd8c3e3c9883 (diff)
downloadexchange-3a4052d16d2b426a1513fd10fdcdbb9fdd13a526.tar.gz
exchange-3a4052d16d2b426a1513fd10fdcdbb9fdd13a526.tar.bz2
exchange-3a4052d16d2b426a1513fd10fdcdbb9fdd13a526.zip
save reserve private key
Diffstat (limited to 'src/mintdb/perf_taler_mintdb_init.h')
-rw-r--r--src/mintdb/perf_taler_mintdb_init.h47
1 files changed, 42 insertions, 5 deletions
diff --git a/src/mintdb/perf_taler_mintdb_init.h b/src/mintdb/perf_taler_mintdb_init.h
index 1a891941e..1925cb2b2 100644
--- a/src/mintdb/perf_taler_mintdb_init.h
+++ b/src/mintdb/perf_taler_mintdb_init.h
@@ -26,6 +26,43 @@
#define CURRENCY "EUR"
+/**
+ * All information about a reserve
+ */
+struct PERF_TALER_MINTDB_Reserve
+{
+ /**
+ * Information about a rserve available to the Mint
+ */
+ struct TALER_MINTDB_Reserve reserve;
+
+ /**
+ * Private key of a reserve
+ */
+ struct GNUNET_CRYPTO_EddsaPrivateKey private;
+};
+
+
+/**
+ * All informations about a coin
+ */
+struct PERF_TALER_MINTDB_Coin
+{
+ /**
+ * Blinded coin, known by the mint
+ */
+ struct TALER_MINTDB_CollectableBlindcoin blind;
+
+ /**
+ * Public key of the coin and othes informations
+ */
+ struct TALER_CoinPublicInfo public_info;
+
+ /**
+ * Private key of the coin
+ */
+ struct GNUNET_CRYPTO_EddsaPrivateKey priv;
+};
/**
@@ -59,7 +96,7 @@ PERF_TALER_MINTDB_denomination_free (
* Generate a dummy reserve for testing
* @return a reserve with 1000 EUR in it
*/
-struct TALER_MINTDB_Reserve *
+struct PERF_TALER_MINTDB_Reserve *
PERF_TALER_MINTDB_reserve_init (void);
@@ -68,8 +105,8 @@ PERF_TALER_MINTDB_reserve_init (void);
* @param reserve the reserve to copy
* @return a copy of @a reserve; NULL if error
*/
-struct TALER_MINTDB_Reserve *
-PERF_TALER_MINTDB_reserve_copy (const struct TALER_MINTDB_Reserve *reserve);
+struct PERF_TALER_MINTDB_Reserve *
+PERF_TALER_MINTDB_reserve_copy (const struct PERF_TALER_MINTDB_Reserve *reserve);
/**
@@ -77,7 +114,7 @@ PERF_TALER_MINTDB_reserve_copy (const struct TALER_MINTDB_Reserve *reserve);
* @param reserve pointer to the structure to be freed
*/
int
-PERF_TALER_MINTDB_reserve_free (struct TALER_MINTDB_Reserve *reserve);
+PERF_TALER_MINTDB_reserve_free (struct PERF_TALER_MINTDB_Reserve *reserve);
/**
@@ -115,7 +152,7 @@ PERF_TALER_MINTDB_deposit_free (struct TALER_MINTDB_Deposit *deposit);
struct TALER_MINTDB_CollectableBlindcoin *
PERF_TALER_MINTDB_collectable_blindcoin_init (
const struct TALER_MINTDB_DenominationKeyIssueInformation *dki,
- const struct TALER_MINTDB_Reserve *reserve);
+ const struct PERF_TALER_MINTDB_Reserve *reserve);
/**