diff options
author | Christian Grothoff <christian@grothoff.org> | 2020-01-17 17:52:20 +0100 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2020-01-17 17:52:20 +0100 |
commit | 67bfd94009edfeaa6f0afcc9afc9208cf35f3672 (patch) | |
tree | 36d9a200b62350582a7695bc3c8bfae8b87b0d54 /src/lib/testing_api_cmd_refresh.c | |
parent | 096de63d04a2bf86c155fd2c594e72704a404cab (diff) |
resolve another FIXME
Diffstat (limited to 'src/lib/testing_api_cmd_refresh.c')
-rw-r--r-- | src/lib/testing_api_cmd_refresh.c | 35 |
1 files changed, 29 insertions, 6 deletions
diff --git a/src/lib/testing_api_cmd_refresh.c b/src/lib/testing_api_cmd_refresh.c index bf0f4ea19..2e921cefd 100644 --- a/src/lib/testing_api_cmd_refresh.c +++ b/src/lib/testing_api_cmd_refresh.c @@ -16,13 +16,11 @@ License along with TALER; see the file COPYING. If not, see <http://www.gnu.org/licenses/> */ - /** * @file exchange-lib/testing_api_cmd_refresh.c * @brief commands for testing all "refresh" features. * @author Marcello Stanisci */ - #include "platform.h" #include "taler_json_lib.h" #include <gnunet/gnunet_curl_lib.h> @@ -31,12 +29,37 @@ #include "taler_signatures.h" #include "backoff.h" + /** - * Data for a coin to be melted. + * Information about a fresh coin generated by the refresh + * operation. */ -struct MeltDetails +struct TALER_TESTING_FreshCoinData { + /** + * If @e amount is NULL, this specifies the denomination key to + * use. Otherwise, this will be set (by the interpreter) to the + * denomination PK matching @e amount. + */ + const struct TALER_EXCHANGE_DenomPublicKey *pk; + + /** + * Set (by the interpreter) to the exchange's signature over the + * coin's public key. + */ + struct TALER_DenominationSignature sig; + + /** + * Set (by the interpreter) to the coin's private key. + */ + struct TALER_CoinSpendPrivateKeyP coin_priv; + + /** + * The blinding key (needed for payback operations). + */ + struct TALER_DenominationBlindingKeyP blinding_key; + }; @@ -344,8 +367,8 @@ reveal_cb (void *cls, switch (http_status) { case MHD_HTTP_OK: - rrs->fresh_coins = GNUNET_new_array - (num_coins, struct TALER_TESTING_FreshCoinData); + rrs->fresh_coins = GNUNET_new_array (num_coins, + struct TALER_TESTING_FreshCoinData); for (unsigned int i = 0; i<num_coins; i++) { struct TALER_TESTING_FreshCoinData *fc = &rrs->fresh_coins[i]; |