From 2164c36f0fc9335d540a42db733131976b8d805d Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Mon, 7 Feb 2022 10:09:12 +0100 Subject: got testing_api_cmd_refresh to compile --- src/include/taler_crypto_lib.h | 4 ++-- src/include/taler_exchange_service.h | 8 ++++++++ 2 files changed, 10 insertions(+), 2 deletions(-) (limited to 'src/include') diff --git a/src/include/taler_crypto_lib.h b/src/include/taler_crypto_lib.h index 8be76aef8..e74d49f6d 100644 --- a/src/include/taler_crypto_lib.h +++ b/src/include/taler_crypto_lib.h @@ -1479,10 +1479,10 @@ TALER_planchet_setup_refresh (const struct TALER_TransferSecretP *secret_seed, /** - * Setup information for a fresh coin. + * Setup information for fresh coins to be withdrawn + * or refreshed. * * @param[out] ps value to initialize - * @oaram alg_values WitdrawValues containing cipher */ void TALER_planchet_setup_random ( diff --git a/src/include/taler_exchange_service.h b/src/include/taler_exchange_service.h index 328c074a0..a6b847bbe 100644 --- a/src/include/taler_exchange_service.h +++ b/src/include/taler_exchange_service.h @@ -1411,6 +1411,12 @@ struct TALER_EXCHANGE_WithdrawResponse */ struct TALER_CoinSpendPrivateKeyP coin_priv; + /** + * Value used to blind the key for the signature. + * Needed for recoup operations. + */ + union TALER_DenominationBlindingKeyP bks; + /** * Signature over the coin. */ @@ -1634,6 +1640,7 @@ struct TALER_EXCHANGE_MeltHandle; * @param hr HTTP response data * @param num_coins number of fresh coins to be created, length of the @a exchange_vals array, 0 if the operation failed * @param alg_values array @a num_coins of exchange values contributed to the refresh operation + * @param bks array of @a num_coins blinding keys used to blind the fresh coins * @param noreveal_index choice by the exchange in the cut-and-choose protocol, * UINT32_MAX on error * @param sign_key exchange key used to sign @a full_response, or NULL @@ -1644,6 +1651,7 @@ typedef void const struct TALER_EXCHANGE_HttpResponse *hr, unsigned int num_coins, const struct TALER_ExchangeWithdrawValues *alg_values, + const union TALER_DenominationBlindingKeyP *bks, uint32_t noreveal_index, const struct TALER_ExchangePublicKeyP *sign_key); -- cgit v1.2.3