diff options
Diffstat (limited to 'src/include')
| -rw-r--r-- | src/include/taler_crypto_lib.h | 17 | ||||
| -rw-r--r-- | src/include/taler_exchange_service.h | 1 | ||||
| -rw-r--r-- | src/include/taler_testing_lib.h | 46 | 
3 files changed, 15 insertions, 49 deletions
| diff --git a/src/include/taler_crypto_lib.h b/src/include/taler_crypto_lib.h index d9565dd7..7b38b1f7 100644 --- a/src/include/taler_crypto_lib.h +++ b/src/include/taler_crypto_lib.h @@ -987,6 +987,17 @@ struct TALER_ExchangeWithdrawValues  void  TALER_denom_pub_free (struct TALER_DenominationPublicKey *denom_pub); + +/** + * Create private key for a Taler coin. + * + * @param[out] coin_priv private key to initialize + */ +void +TALER_planchet_setup_coin_priv ( +  struct TALER_CoinSpendPrivateKeyP *coin_priv); + +  /**   * @brief Method to derive withdraw nonce   * @@ -1472,9 +1483,9 @@ TALER_planchet_setup_refresh (const struct TALER_TransferSecretP *secret_seed,   * @oaram alg_values WitdrawValues containing cipher   */  void -TALER_planchet_setup_random (struct TALER_PlanchetSecretsP *ps, -                             const struct -                             TALER_ExchangeWithdrawValues *alg_values); +TALER_planchet_setup_random ( +  struct TALER_PlanchetSecretsP *ps, +  const struct TALER_ExchangeWithdrawValues *alg_values);  /**   * Create a blinding secret @a bs for @a cipher. diff --git a/src/include/taler_exchange_service.h b/src/include/taler_exchange_service.h index 68c97186..beb33738 100644 --- a/src/include/taler_exchange_service.h +++ b/src/include/taler_exchange_service.h @@ -1461,7 +1461,6 @@ TALER_EXCHANGE_withdraw (    const struct TALER_EXCHANGE_DenomPublicKey *pk,    const struct TALER_ReservePrivateKeyP *reserve_priv,    struct TALER_PlanchetSecretsP *ps, -  struct TALER_ExchangeWithdrawValues *alg_values,    TALER_EXCHANGE_WithdrawCallback res_cb,    void *res_cb_cls); diff --git a/src/include/taler_testing_lib.h b/src/include/taler_testing_lib.h index c6bebbee..20e3145f 100644 --- a/src/include/taler_testing_lib.h +++ b/src/include/taler_testing_lib.h @@ -66,13 +66,11 @@ TALER_TESTING_make_wire_details (const char *payto);   *   * @param keys array of keys to search   * @param amount coin value to look for - * @param cipher denomination cipher   * @return NULL if no matching key was found   */  const struct TALER_EXCHANGE_DenomPublicKey *  TALER_TESTING_find_pk (const struct TALER_EXCHANGE_Keys *keys, -                       const struct TALER_Amount *amount, -                       const enum TALER_DenominationCipher cipher); +                       const struct TALER_Amount *amount);  /** @@ -1291,24 +1289,6 @@ TALER_TESTING_cmd_withdraw_amount (const char *label,  /** - * Create a withdraw command using a CS denomination, letting the caller specify - * the desired amount as string. - * - * @param label command label. - * @param reserve_reference command providing us with a reserve to withdraw from - * @param amount how much we withdraw. - * @param expected_response_code which HTTP response code - *        we expect from the exchange. - * @return the withdraw command to be executed by the interpreter. - */ -struct TALER_TESTING_Command -TALER_TESTING_cmd_withdraw_cs_amount (const char *label, -                                      const char *reserve_reference, -                                      const char *amount, -                                      unsigned int expected_response_code); - - -/**   * Create a withdraw command, letting the caller specify   * the desired amount as string and also re-using an existing   * coin private key in the process (violating the specification, @@ -1333,30 +1313,6 @@ TALER_TESTING_cmd_withdraw_amount_reuse_key (  /** - * Create a CS withdraw command, letting the caller specify - * the desired amount as string and also re-using an existing - * coin private key in the process (violating the specification, - * which will result in an error when spending the coin!). - * - * @param label command label. - * @param reserve_reference command providing us with a reserve to withdraw from - * @param amount how much we withdraw. - * @param coin_ref reference to (withdraw/reveal) command of a coin - *        from which we should re-use the private key - * @param expected_response_code which HTTP response code - *        we expect from the exchange. - * @return the withdraw command to be executed by the interpreter. - */ -struct TALER_TESTING_Command -TALER_TESTING_cmd_withdraw_cs_amount_reuse_key ( -  const char *label, -  const char *reserve_reference, -  const char *amount, -  const char *coin_ref, -  unsigned int expected_response_code); - - -/**   * Create withdraw command, letting the caller specify the   * amount by a denomination key.   * | 
