diff options
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 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 |