summaryrefslogtreecommitdiff
path: root/src/lib/exchange_api_refresh_common.h
diff options
context:
space:
mode:
authorChristian Grothoff <grothoff@gnunet.org>2022-02-04 22:02:48 +0100
committerChristian Grothoff <grothoff@gnunet.org>2022-02-04 22:02:48 +0100
commitd833966d521e9b836c8c854595671197c64c24f6 (patch)
tree57ba8beda7e0b7025c054e35a7ffc6985f028519 /src/lib/exchange_api_refresh_common.h
parentbd5a25aff2ff6dc0a9115766fa239548f85bf641 (diff)
downloadexchange-d833966d521e9b836c8c854595671197c64c24f6.tar.gz
exchange-d833966d521e9b836c8c854595671197c64c24f6.tar.bz2
exchange-d833966d521e9b836c8c854595671197c64c24f6.zip
-API work
Diffstat (limited to 'src/lib/exchange_api_refresh_common.h')
-rw-r--r--src/lib/exchange_api_refresh_common.h16
1 files changed, 9 insertions, 7 deletions
diff --git a/src/lib/exchange_api_refresh_common.h b/src/lib/exchange_api_refresh_common.h
index 1c037d966..1ce513efb 100644
--- a/src/lib/exchange_api_refresh_common.h
+++ b/src/lib/exchange_api_refresh_common.h
@@ -111,15 +111,17 @@ struct MeltData
/**
- * Deserialize melt data.
+ * Compute the melt data from the refresh data and secret.
*
- * @param data json data to deserialize
- * @param currency expected currency for the coins
- * @return deserialized melt data, NULL on error
+ * @param ps secret internals of the refresh-reveal operation
+ * @param rd refresh data with the characteristics of the operation
+ * @param[out] rd where to write the derived melt data
*/
-struct MeltData *
-TALER_EXCHANGE_deserialize_melt_data_ (const json_t *data,
- const char *currency);
+enum GNUNET_GenericReturnValue
+TALER_EXCHANGE_get_melt_data_ (
+ const struct TALER_PlanchetSecretsP *ps,
+ const struct struct TALER_EXCHANGE_RefreshData *rd,
+ struct MeltData *md);
/**