aboutsummaryrefslogtreecommitdiff
path: root/src/mint/taler-mint-httpd_db.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/mint/taler-mint-httpd_db.h')
-rw-r--r--src/mint/taler-mint-httpd_db.h49
1 files changed, 17 insertions, 32 deletions
diff --git a/src/mint/taler-mint-httpd_db.h b/src/mint/taler-mint-httpd_db.h
index dcd5e6fa0..2a26de9b4 100644
--- a/src/mint/taler-mint-httpd_db.h
+++ b/src/mint/taler-mint-httpd_db.h
@@ -107,6 +107,8 @@ struct MeltDetails
107 * required value left and if so, store that they have been 107 * required value left and if so, store that they have been
108 * melted and confirm the melting operation to the client. 108 * melted and confirm the melting operation to the client.
109 * 109 *
110 * FIXME: some arguments are redundant here...
111 *
110 * @param connection the MHD connection to handle 112 * @param connection the MHD connection to handle
111 * @param melt_hash hash code of the session the coins are melted into 113 * @param melt_hash hash code of the session the coins are melted into
112 * @param refresh_session_pub public key of the refresh session 114 * @param refresh_session_pub public key of the refresh session
@@ -117,30 +119,6 @@ struct MeltDetails
117 * @param coin_count number of entries in @a coin_public_infos and @ a coin_melt_details 119 * @param coin_count number of entries in @a coin_public_infos and @ a coin_melt_details
118 * @param coin_public_infos information about the coins to melt 120 * @param coin_public_infos information about the coins to melt
119 * @param coin_melt_details signatures and (residual) value of the respective coin should be melted 121 * @param coin_melt_details signatures and (residual) value of the respective coin should be melted
120 * @return MHD result code
121 */
122int
123TALER_MINT_db_execute_refresh_melt (struct MHD_Connection *connection,
124 const struct GNUNET_HashCode *melt_hash,
125 const struct GNUNET_CRYPTO_EddsaPublicKey *refresh_session_pub,
126 const struct GNUNET_CRYPTO_EddsaSignature *client_signature,
127 unsigned int num_new_denoms,
128 struct GNUNET_CRYPTO_rsa_PublicKey *const*denom_pubs,
129 unsigned int coin_count,
130 const struct TALER_CoinPublicInfo *coin_public_infos,
131 const struct MeltDetails *coin_melt_details);
132
133
134/**
135 * Execute a "/refresh/commit". The client is committing to @a kappa
136 * sets of transfer keys, and linkage information for a refresh
137 * operation. Confirm that the commit matches the melts of an
138 * existing @a refresh_session_pub, store the refresh session commit
139 * data and then return the client a challenge specifying which of the
140 * @a kappa sets of private transfer keys should not be revealed.
141 *
142 * @param connection the MHD connection to handle
143 * @param refresh_session public key of the session
144 * @param commit_client_sig signature of the client over this commitment 122 * @param commit_client_sig signature of the client over this commitment
145 * @param kappa size of x-dimension of @commit_coin and @commit_link arrays 123 * @param kappa size of x-dimension of @commit_coin and @commit_link arrays
146 * @param num_oldcoins size of y-dimension of @commit_coin array 124 * @param num_oldcoins size of y-dimension of @commit_coin array
@@ -154,14 +132,21 @@ TALER_MINT_db_execute_refresh_melt (struct MHD_Connection *connection,
154 */ 132 */
155// FIXME: see #3635. 133// FIXME: see #3635.
156int 134int
157TALER_MINT_db_execute_refresh_commit (struct MHD_Connection *connection, 135TALER_MINT_db_execute_refresh_melt (struct MHD_Connection *connection,
158 const struct GNUNET_CRYPTO_EddsaPublicKey *refresh_session_pub, 136 const struct GNUNET_HashCode *melt_hash,
159 const struct GNUNET_CRYPTO_EddsaSignature *commit_client_sig, 137 const struct GNUNET_CRYPTO_EddsaPublicKey *refresh_session_pub,
160 unsigned int kappa, 138 const struct GNUNET_CRYPTO_EddsaSignature *client_signature,
161 unsigned int num_oldcoins, 139 unsigned int num_new_denoms,
162 unsigned int num_newcoins, 140 struct GNUNET_CRYPTO_rsa_PublicKey *const*denom_pubs,
163 struct RefreshCommitCoin *const* commit_coin, 141 unsigned int coin_count,
164 struct RefreshCommitLink *const* commit_link); 142 const struct TALER_CoinPublicInfo *coin_public_infos,
143 const struct MeltDetails *coin_melt_details,
144 const struct GNUNET_CRYPTO_EddsaSignature *commit_client_sig,
145 unsigned int kappa,
146 unsigned int num_oldcoins,
147 unsigned int num_newcoins,
148 struct RefreshCommitCoin *const* commit_coin,
149 struct RefreshCommitLink *const* commit_link);
165 150
166 151
167/** 152/**