diff options
author | Christian Grothoff <christian@grothoff.org> | 2015-01-28 15:35:41 +0100 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2015-01-28 15:35:41 +0100 |
commit | e19f1906a3363f0f49553d35d95429c92bec29d4 (patch) | |
tree | b5c644a5600e1f629bc7dd72d2f88461f4ad5526 /src/mint/taler-mint-httpd_responses.c | |
parent | 7f171e69b27d48f02acd8c79e3a173a448be7ebd (diff) |
avoid using struct Deposit in response
Diffstat (limited to 'src/mint/taler-mint-httpd_responses.c')
-rw-r--r-- | src/mint/taler-mint-httpd_responses.c | 21 |
1 files changed, 18 insertions, 3 deletions
diff --git a/src/mint/taler-mint-httpd_responses.c b/src/mint/taler-mint-httpd_responses.c index c8200b43a..8a0d7e797 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 |