diff options
| author | Florian Dold <florian.dold@gmail.com> | 2017-05-29 01:15:41 +0200 | 
|---|---|---|
| committer | Florian Dold <florian.dold@gmail.com> | 2017-05-29 01:15:41 +0200 | 
| commit | 85350ced32108f2ec69fbf62e0a7c3b256840fb1 (patch) | |
| tree | ca8370f99feae0fb55dad2b5b13f0175e242fdcd /src/include | |
| parent | 5d58316d884e660ff9a83a6e7a4bd34ae4c8e734 (diff) | |
rename proposal_data to contract_terms (see #4879)
Diffstat (limited to 'src/include')
| -rw-r--r-- | src/include/taler_crypto_lib.h | 2 | ||||
| -rw-r--r-- | src/include/taler_error_codes.h | 2 | ||||
| -rw-r--r-- | src/include/taler_exchange_service.h | 12 | ||||
| -rw-r--r-- | src/include/taler_exchangedb_plugin.h | 26 | ||||
| -rw-r--r-- | src/include/taler_signatures.h | 16 | 
5 files changed, 29 insertions, 29 deletions
diff --git a/src/include/taler_crypto_lib.h b/src/include/taler_crypto_lib.h index 1b72a892..9c854ab1 100644 --- a/src/include/taler_crypto_lib.h +++ b/src/include/taler_crypto_lib.h @@ -363,7 +363,7 @@ struct TALER_TrackTransferDetails    /**     * Hash of the proposal data.     */ -  struct GNUNET_HashCode h_proposal_data; +  struct GNUNET_HashCode h_contract_terms;    /**     * Which coin was deposited? diff --git a/src/include/taler_error_codes.h b/src/include/taler_error_codes.h index bfca715a..40a9b1a0 100644 --- a/src/include/taler_error_codes.h +++ b/src/include/taler_error_codes.h @@ -1265,7 +1265,7 @@ enum TALER_ErrorCode    /**     * The backend encountered an error while trying to store the -   * h_proposal_data into the database. +   * h_contract_terms into the database.     * The response is provided with HTTP status code MHD_HTTP_INTERNAL_SERVER_ERROR.     */    TALER_EC_PROPOSAL_STORE_DB_ERROR = 2501, diff --git a/src/include/taler_exchange_service.h b/src/include/taler_exchange_service.h index f65cf2a0..20f98998 100644 --- a/src/include/taler_exchange_service.h +++ b/src/include/taler_exchange_service.h @@ -520,7 +520,7 @@ typedef void   * @param wire_deadline execution date, until which the merchant would like the exchange to settle the balance (advisory, the exchange cannot be   *        forced to settle in the past or upon very short notice, but of course a well-behaved exchange will limit aggregation based on the advice received)   * @param wire_details the merchant’s account details, in a format supported by the exchange - * @param h_proposal_data hash of the contact of the merchant with the customer (further details are never disclosed to the exchange) + * @param h_contract_terms hash of the contact of the merchant with the customer (further details are never disclosed to the exchange)   * @param coin_pub coin’s public key   * @param denom_pub denomination key with which the coin is signed   * @param denom_sig exchange’s unblinded signature of the coin @@ -538,7 +538,7 @@ TALER_EXCHANGE_deposit (struct TALER_EXCHANGE_Handle *exchange,                          const struct TALER_Amount *amount,                          struct GNUNET_TIME_Absolute wire_deadline,                          json_t *wire_details, -                        const struct GNUNET_HashCode *h_proposal_data, +                        const struct GNUNET_HashCode *h_contract_terms,                          const struct TALER_CoinSpendPublicKeyP *coin_pub,                          const struct TALER_DenominationSignature *denom_sig,                          const struct TALER_DenominationPublicKey *denom_pub, @@ -606,7 +606,7 @@ typedef void   *        (as that fee is still being subtracted), and smaller than the amount   *        (with deposit fee) of the original deposit contribution of this coin   * @param refund_fee fee applicable to this coin for the refund - * @param h_proposal_data hash of the contact of the merchant with the customer that is being refunded + * @param h_contract_terms hash of the contact of the merchant with the customer that is being refunded   * @param coin_pub coin’s public key of the coin from the original deposit operation   * @param rtransaction_id transaction id for the transaction between merchant and customer (of refunding operation);   *                        this is needed as we may first do a partial refund and later a full refund.  If both @@ -622,7 +622,7 @@ struct TALER_EXCHANGE_RefundHandle *  TALER_EXCHANGE_refund (struct TALER_EXCHANGE_Handle *exchange,  		       const struct TALER_Amount *amount,  		       const struct TALER_Amount *refund_fee, -		       const struct GNUNET_HashCode *h_proposal_data, +		       const struct GNUNET_HashCode *h_contract_terms,  		       const struct TALER_CoinSpendPublicKeyP *coin_pub,  		       uint64_t rtransaction_id,  		       const struct TALER_MerchantPrivateKeyP *merchant_priv, @@ -1365,7 +1365,7 @@ typedef void   * @param exchange the exchange to query   * @param merchant_priv the merchant's private key   * @param h_wire hash of merchant's wire transfer details - * @param h_proposal_data hash of the proposal data + * @param h_contract_terms hash of the proposal data   * @param coin_pub public key of the coin   * @param cb function to call with the result   * @param cb_cls closure for @a cb @@ -1375,7 +1375,7 @@ struct TALER_EXCHANGE_TrackTransactionHandle *  TALER_EXCHANGE_track_transaction (struct TALER_EXCHANGE_Handle *exchange,                                    const struct TALER_MerchantPrivateKeyP *merchant_priv,                                    const struct GNUNET_HashCode *h_wire, -                                  const struct GNUNET_HashCode *h_proposal_data, +                                  const struct GNUNET_HashCode *h_contract_terms,                                    const struct TALER_CoinSpendPublicKeyP *coin_pub,                                    TALER_EXCHANGE_TrackTransactionCallback cb,                                    void *cb_cls); diff --git a/src/include/taler_exchangedb_plugin.h b/src/include/taler_exchangedb_plugin.h index 66c41ad6..5539d527 100644 --- a/src/include/taler_exchangedb_plugin.h +++ b/src/include/taler_exchangedb_plugin.h @@ -334,7 +334,7 @@ struct TALER_EXCHANGEDB_Deposit     * ECDSA signature affirming that the customer intends     * this coin to be deposited at the merchant identified     * by @e h_wire in relation to the proposal data identified -   * by @e h_proposal_data. +   * by @e h_contract_terms.     */    struct TALER_CoinSpendSignatureP csig; @@ -348,7 +348,7 @@ struct TALER_EXCHANGEDB_Deposit     * Hash over the proposa data between merchant and customer     * (remains unknown to the Exchange).     */ -  struct GNUNET_HashCode h_proposal_data; +  struct GNUNET_HashCode h_contract_terms;    /**     * Hash of the (canonical) representation of @e wire, used @@ -439,7 +439,7 @@ struct TALER_EXCHANGEDB_Refund     * Hash over the proposal data between merchant and customer     * (remains unknown to the Exchange).     */ -  struct GNUNET_HashCode h_proposal_data; +  struct GNUNET_HashCode h_contract_terms;    /**     * Merchant-generated REFUND transaction ID to detect duplicate @@ -669,7 +669,7 @@ struct TALER_EXCHANGEDB_Session;   * @param coin_pub public key of the coin   * @param amount_with_fee amount that was deposited including fee   * @param deposit_fee amount the exchange gets to keep as transaction fees - * @param h_proposal_data hash of the proposal data known to merchant and customer + * @param h_contract_terms hash of the proposal data known to merchant and customer   * @param wire_deadline by which the merchant adviced that he would like the   *        wire transfer to be executed   * @param receiver_wire_account wire details for the merchant, NULL from iterate_matching_deposits() @@ -682,7 +682,7 @@ typedef int                                      const struct TALER_CoinSpendPublicKeyP *coin_pub,                                      const struct TALER_Amount *amount_with_fee,                                      const struct TALER_Amount *deposit_fee, -                                    const struct GNUNET_HashCode *h_proposal_data, +                                    const struct GNUNET_HashCode *h_contract_terms,                                      struct GNUNET_TIME_Absolute wire_deadline,                                      const json_t *receiver_wire_account); @@ -716,7 +716,7 @@ typedef void   * @param coin_pub public key of the coin   * @param coin_sig signature from the coin   * @param amount_with_fee amount that was deposited including fee - * @param h_proposal_data hash of the proposal data known to merchant and customer + * @param h_contract_terms hash of the proposal data known to merchant and customer   * @param refund_deadline by which the merchant adviced that he might want   *        to get a refund   * @param wire_deadline by which the merchant adviced that he would like the @@ -734,7 +734,7 @@ typedef int                                      const struct TALER_CoinSpendPublicKeyP *coin_pub,                                      const struct TALER_CoinSpendSignatureP *coin_sig,                                      const struct TALER_Amount *amount_with_fee, -                                    const struct GNUNET_HashCode *h_proposal_data, +                                    const struct GNUNET_HashCode *h_contract_terms,                                      struct GNUNET_TIME_Absolute refund_deadline,                                      struct GNUNET_TIME_Absolute wire_deadline,                                      const json_t *receiver_wire_account, @@ -778,7 +778,7 @@ typedef int   * @param coin_pub public key of the coin   * @param merchant_pub public key of the merchant   * @param merchant_sig signature of the merchant - * @param h_proposal_data hash of the proposal data known to merchant and customer + * @param h_contract_terms hash of the proposal data known to merchant and customer   * @param rtransaction_id refund transaction ID chosen by the merchant   * @param amount_with_fee amount that was deposited including fee   * @return #GNUNET_OK to continue to iterate, #GNUNET_SYSERR to stop @@ -790,7 +790,7 @@ typedef int                                     const struct TALER_CoinSpendPublicKeyP *coin_pub,                                     const struct TALER_MerchantPublicKeyP *merchant_pub,                                     const struct TALER_MerchantSignatureP *merchant_sig, -                                   const struct GNUNET_HashCode *h_proposal_data, +                                   const struct GNUNET_HashCode *h_contract_terms,                                     uint64_t rtransaction_id,                                     const struct TALER_Amount *amount_with_fee); @@ -892,7 +892,7 @@ typedef void   * @param wire_method which wire plugin was used for the transfer?   * @param h_wire hash of wire transfer details of the merchant (should be same for all callbacks with the same @e cls)   * @param exec_time execution time of the wire transfer (should be same for all callbacks with the same @e cls) - * @param h_proposal_data which proposal was this payment about + * @param h_contract_terms which proposal was this payment about   * @param coin_pub which public key was this payment about   * @param coin_value amount contributed by this coin in total (with fee)   * @param coin_fee applicable fee for this coin @@ -904,7 +904,7 @@ typedef void                                               const char *wire_method,                                               const struct GNUNET_HashCode *h_wire,                                               struct GNUNET_TIME_Absolute exec_time, -                                             const struct GNUNET_HashCode *h_proposal_data, +                                             const struct GNUNET_HashCode *h_contract_terms,                                               const struct TALER_CoinSpendPublicKeyP *coin_pub,                                               const struct TALER_Amount *coin_value,                                               const struct TALER_Amount *coin_fee); @@ -1755,7 +1755,7 @@ struct TALER_EXCHANGEDB_Plugin     *     * @param cls closure     * @param session database connection -   * @param h_proposal_data hash of the proposal data +   * @param h_contract_terms hash of the proposal data     * @param h_wire hash of merchant wire details     * @param coin_pub public key of deposited coin     * @param merchant_pub merchant public key @@ -1767,7 +1767,7 @@ struct TALER_EXCHANGEDB_Plugin    int    (*wire_lookup_deposit_wtid)(void *cls,                                struct TALER_EXCHANGEDB_Session *session, -			      const struct GNUNET_HashCode *h_proposal_data, +			      const struct GNUNET_HashCode *h_contract_terms,  			      const struct GNUNET_HashCode *h_wire,  			      const struct TALER_CoinSpendPublicKeyP *coin_pub,  			      const struct TALER_MerchantPublicKeyP *merchant_pub, diff --git a/src/include/taler_signatures.h b/src/include/taler_signatures.h index f4601309..9699e68a 100644 --- a/src/include/taler_signatures.h +++ b/src/include/taler_signatures.h @@ -285,7 +285,7 @@ struct TALER_DepositRequestPS    /**     * Hash over the contract for which this deposit is made.     */ -  struct GNUNET_HashCode h_proposal_data GNUNET_PACKED; +  struct GNUNET_HashCode h_contract_terms GNUNET_PACKED;    /**     * Hash over the wiring information of the merchant. @@ -363,7 +363,7 @@ struct TALER_DepositConfirmationPS    /**     * Hash over the contract for which this deposit is made.     */ -  struct GNUNET_HashCode h_proposal_data GNUNET_PACKED; +  struct GNUNET_HashCode h_contract_terms GNUNET_PACKED;    /**     * Hash over the wiring information of the merchant. @@ -421,7 +421,7 @@ struct TALER_RefundRequestPS     * Hash over the proposal data to identify the contract     * which is being refunded.     */ -  struct GNUNET_HashCode h_proposal_data GNUNET_PACKED; +  struct GNUNET_HashCode h_contract_terms GNUNET_PACKED;    /**     * The coin's public key.  This is the value that must have been @@ -475,7 +475,7 @@ struct TALER_RefundConfirmationPS     * Hash over the proposal data to identify the contract     * which is being refunded.     */ -  struct GNUNET_HashCode h_proposal_data GNUNET_PACKED; +  struct GNUNET_HashCode h_contract_terms GNUNET_PACKED;    /**     * The coin's public key.  This is the value that must have been @@ -973,7 +973,7 @@ struct TALER_DepositTrackPS    /**     * Hash over the proposal data of the contract for which this deposit is made.     */ -  struct GNUNET_HashCode h_proposal_data GNUNET_PACKED; +  struct GNUNET_HashCode h_contract_terms GNUNET_PACKED;    /**     * Hash over the wiring information of the merchant. @@ -1005,7 +1005,7 @@ struct TALER_WireDepositDetailP    /**     * Hash of the contract     */ -  struct GNUNET_HashCode h_proposal_data; +  struct GNUNET_HashCode h_contract_terms;    /**     * Time when the wire transfer was performed by the exchange. @@ -1105,7 +1105,7 @@ struct PaymentResponsePS    /**     * Hash of the proposal data associated with this confirmation     */ -  struct GNUNET_HashCode h_proposal_data; +  struct GNUNET_HashCode h_contract_terms;  }; @@ -1129,7 +1129,7 @@ struct TALER_ConfirmWirePS    /**     * Hash over the contract for which this deposit is made.     */ -  struct GNUNET_HashCode h_proposal_data GNUNET_PACKED; +  struct GNUNET_HashCode h_contract_terms GNUNET_PACKED;    /**     * Raw value (binary encoding) of the wire transfer subject.  | 
