From e19f1906a3363f0f49553d35d95429c92bec29d4 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Wed, 28 Jan 2015 15:35:41 +0100 Subject: avoid using struct Deposit in response --- src/mint/taler-mint-httpd_responses.c | 21 ++++++++++++++++++--- 1 file changed, 18 insertions(+), 3 deletions(-) (limited to 'src/mint/taler-mint-httpd_responses.c') diff --git a/src/mint/taler-mint-httpd_responses.c b/src/mint/taler-mint-httpd_responses.c index c8200b43..8a0d7e79 100644 --- a/src/mint/taler-mint-httpd_responses.c +++ b/src/mint/taler-mint-httpd_responses.c @@ -250,15 +250,30 @@ TALER_MINT_reply_invalid_json (struct MHD_Connection *connection) /** - * Send confirmation of deposit success to client. + * Send confirmation of deposit success to client. This function + * will create a signed message affirming the given information + * and return it to the client. By this, the mint affirms that + * the coin had sufficient (residual) value for the specified + * transaction and that it will execute the requested deposit + * operation with the given wiring details. * * @param connection connection to the client - * @param deposit deposit request to confirm + * @param coin_pub public key of the coin + * @param h_wire hash of wire details + * @param h_contract hash of contract details + * @param transaction_id transaction ID + * @param merchant merchant public key + * @param amount fraction of coin value to deposit * @return MHD result code */ int TALER_MINT_reply_deposit_success (struct MHD_Connection *connection, - const struct Deposit *deposit) + const struct GNUNET_CRYPTO_EcdsaPublicKey *coin_pub, + const struct GNUNET_HashCode *h_wire, + const struct GNUNET_HashCode *h_contract, + uint64_t transaction_id, + const struct GNUNET_CRYPTO_EddsaPublicKey *merchant, + const struct TALER_Amount *amount) { // FIXME: return more information here, // including in particular a signature over -- cgit v1.2.3