diff options
| author | Christian Grothoff <christian@grothoff.org> | 2022-02-12 14:38:24 +0100 | 
|---|---|---|
| committer | Christian Grothoff <christian@grothoff.org> | 2022-02-12 14:38:27 +0100 | 
| commit | f6ecf7458ab4a0e23233439ca6c878fd93921083 (patch) | |
| tree | 1b23fe66bfdac54ba36266eb3960d375a2b7238e /src/include | |
| parent | 7cedf3f0bf0bd9c4f89c26bfbb4e276423860f65 (diff) | |
-refactor melt API, add FIXME for discovered bug
Diffstat (limited to 'src/include')
| -rw-r--r-- | src/include/taler_exchange_service.h | 28 | 
1 files changed, 9 insertions, 19 deletions
diff --git a/src/include/taler_exchange_service.h b/src/include/taler_exchange_service.h index 3b227fe3..3961aaa1 100644 --- a/src/include/taler_exchange_service.h +++ b/src/include/taler_exchange_service.h @@ -1650,6 +1650,7 @@ struct TALER_EXCHANGE_MeltBlindingDetail    /**     * Blinding keys used to blind the fresh coins     */ +  /* FIXME: uninitialized! */    union TALER_DenominationBlindingKeyP bks;  }; @@ -1678,12 +1679,6 @@ struct TALER_EXCHANGE_MeltResponse      {        /** -       * Length of the @a mbds array with the exchange values -       * and blinding keys we are using. -       */ -      unsigned int num_mbds; - -      /**         * Information returned per coin.         */        const struct TALER_EXCHANGE_MeltBlindingDetail *mbds; @@ -1694,6 +1689,12 @@ struct TALER_EXCHANGE_MeltResponse        struct TALER_ExchangePublicKeyP sign_key;        /** +       * Length of the @a mbds array with the exchange values +       * and blinding keys we are using. +       */ +      unsigned int num_mbds; + +      /**         * Gamma value chosen by the exchange.         */        uint32_t noreveal_index; @@ -1710,23 +1711,12 @@ struct TALER_EXCHANGE_MeltResponse   * #TALER_EXCHANGE_refreshes_reveal().   *   * @param cls closure - * @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 the response, or NULL + * @param mr response details   */  typedef void  (*TALER_EXCHANGE_MeltCallback) (    void *cls, -  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); +  const struct TALER_EXCHANGE_MeltResponse *mr);  /**  | 
