diff options
author | Christian Grothoff <christian@grothoff.org> | 2015-01-21 14:46:33 +0100 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2015-01-21 14:46:33 +0100 |
commit | 9c56c91c1f9879352e5be51ccb2447128e0cd735 (patch) | |
tree | 9ec4f90462fb54afa4e782827d1257dacf38fa33 /src/mint/taler-mint-httpd_db.h | |
parent | c9a819a5efdc359fd8d7a3c32e497679c92d0741 (diff) | |
download | exchange-9c56c91c1f9879352e5be51ccb2447128e0cd735.tar.xz |
separate DB logic for /refresh/reveal from parsing logic
Diffstat (limited to 'src/mint/taler-mint-httpd_db.h')
-rw-r--r-- | src/mint/taler-mint-httpd_db.h | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/src/mint/taler-mint-httpd_db.h b/src/mint/taler-mint-httpd_db.h index 093878674..2a03812aa 100644 --- a/src/mint/taler-mint-httpd_db.h +++ b/src/mint/taler-mint-httpd_db.h @@ -110,6 +110,23 @@ TALER_MINT_db_execute_refresh_commit (struct MHD_Connection *connection, struct RefreshCommitLink *const* commit_link); +/** + * Execute a /refresh/reveal. + * + * @param connection the MHD connection to handle + * @param refresh_session_pub public key of the refresh session + * @param kappa size of x-dimension of @transfer_privs array plus one (!) + * @param num_oldcoins size of y-dimension of @transfer_privs array + * @param transfer_pubs array with the revealed transfer keys + * @return MHD result code + */ +int +TALER_MINT_db_execute_refresh_reveal (struct MHD_Connection *connection, + const struct GNUNET_CRYPTO_EddsaPublicKey *refresh_session_pub, + unsigned int kappa, + unsigned int num_oldcoins, + struct GNUNET_CRYPTO_EcdsaPrivateKey *const*transfer_privs); + /** * Execute a /refresh/link. |