From a1f20a92a0578e63b2b5d764ac802dbe45ab08e0 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Mon, 19 Jan 2015 21:04:58 +0100 Subject: restructuring more of deposit logic towards desired flow structure --- src/mint/mint_db.h | 24 ++---------------------- 1 file changed, 2 insertions(+), 22 deletions(-) (limited to 'src/mint/mint_db.h') diff --git a/src/mint/mint_db.h b/src/mint/mint_db.h index eb7a105cb..5fab7c02a 100644 --- a/src/mint/mint_db.h +++ b/src/mint/mint_db.h @@ -24,10 +24,11 @@ #define _NEURO_MINT_DB_H #include +#include #include #include "taler_util.h" #include "taler_rsa.h" - +#include "taler-mint-httpd_db.h" /** * Public information about a coin. @@ -172,26 +173,6 @@ struct KnownCoin struct GNUNET_CRYPTO_EddsaPublicKey refresh_session_pub; }; -GNUNET_NETWORK_STRUCT_BEGIN - -struct Deposit -{ - /* FIXME: should be TALER_CoinPublicInfo */ - struct GNUNET_CRYPTO_EddsaPublicKey coin_pub; - struct TALER_RSA_PublicKeyBinaryEncoded denom_pub; - struct TALER_RSA_Signature coin_sig; - struct TALER_RSA_SignaturePurpose purpose; - uint64_t transaction_id; - struct TALER_AmountNBO amount; - struct GNUNET_CRYPTO_EddsaPublicKey merchant_pub; - struct GNUNET_HashCode h_contract; - struct GNUNET_HashCode h_wire; - /* TODO: uint16_t wire_size */ - char wire[]; /* string encoded wire JSON object */ -}; - -GNUNET_NETWORK_STRUCT_END - int TALER_MINT_DB_prepare (PGconn *db_conn); @@ -350,7 +331,6 @@ TALER_MINT_DB_insert_known_coin (PGconn *db_conn, const struct KnownCoin *known_coin); - /** * Get the thread-local database-handle. * Connect to the db if the connection does not exist yet. -- cgit v1.2.3