diff options
author | Florian Dold <florian.dold@gmail.com> | 2017-02-07 15:31:55 +0100 |
---|---|---|
committer | Florian Dold <florian.dold@gmail.com> | 2017-02-07 15:33:56 +0100 |
commit | e4207873a67d913a6994c9fdecebca3726e9425d (patch) | |
tree | 798d45c668fc9f8f9a1a989187cb7e57da9b0096 | |
parent | dab82d9e11c3c2705e5aeacc8142023cdd21289a (diff) | |
download | docs-e4207873a67d913a6994c9fdecebca3726e9425d.tar.gz docs-e4207873a67d913a6994c9fdecebca3726e9425d.tar.bz2 docs-e4207873a67d913a6994c9fdecebca3726e9425d.zip |
start using new terminology, remove transaction_id
-rw-r--r-- | api/api-common.rst | 16 | ||||
-rw-r--r-- | api/api-error.rst | 2 | ||||
-rw-r--r-- | api/api-exchange.rst | 8 | ||||
-rw-r--r-- | api/api-merchant.rst | 4 | ||||
-rw-r--r-- | docs/example-essay-store.rst | 8 | ||||
-rw-r--r-- | docs/integration-merchant.rst | 4 |
6 files changed, 21 insertions, 21 deletions
diff --git a/api/api-common.rst b/api/api-common.rst index defabe69..e8e41fec 100644 --- a/api/api-common.rst +++ b/api/api-common.rst @@ -481,7 +481,7 @@ within the * purpose.purpose = TALER_SIGNATURE_WALLET_COIN_DEPOSIT */ struct GNUNET_CRYPTO_EccSignaturePurpose purpose; - struct GNUNET_HashCode h_contract; + struct GNUNET_HashCode h_proposal_data; struct GNUNET_HashCode h_wire; struct GNUNET_TIME_AbsoluteNBO timestamp; struct GNUNET_TIME_AbsoluteNBO refund_deadline; @@ -500,7 +500,7 @@ within the * purpose.purpose = TALER_SIGNATURE_WALLET_CONFIRM_DEPOSIT */ struct GNUNET_CRYPTO_EccSignaturePurpose purpose; - struct GNUNET_HashCode h_contract; + struct GNUNET_HashCode h_proposal_data; struct GNUNET_HashCode h_wire; uint64_t transaction_id GNUNET_PACKED; struct GNUNET_TIME_AbsoluteNBO timestamp; @@ -593,7 +593,7 @@ within the * purpose.purpose = TALER_SIGNATURE_MASTER_SEPA_DETAILS || TALER_SIGNATURE_MASTER_TEST_DETAILS */ struct GNUNET_CRYPTO_EccSignaturePurpose purpose; - struct GNUNET_HashCode h_contract; + struct GNUNET_HashCode h_proposal_data; struct GNUNET_HashCode h_wire; uint64_t transaction_id; struct TALER_MerchantPublicKeyP merchant; @@ -605,7 +605,7 @@ within the * to generate the signature for /track/transfer signatures. */ struct TALER_WireDepositDetailP { - struct GNUNET_HashCode h_contract; + struct GNUNET_HashCode h_proposal_data; struct GNUNET_TIME_AbsoluteNBO execution_time; uint64_t transaction_id GNUNET_PACKED; struct TALER_CoinSpendPublicKeyP coin_pub; @@ -655,7 +655,7 @@ within the * purpose.purpose = TALER_SIGNATURE_MERCHANT_PAYMENT_OK */ struct GNUNET_CRYPTO_EccSignaturePurpose purpose; - struct GNUNET_HashCode h_contract; + struct GNUNET_HashCode h_proposal_data; }; @@ -670,7 +670,7 @@ within the uint64_t transaction_id; struct TALER_AmountNBO total_amount; struct TALER_AmountNBO max_fee; - struct GNUNET_HashCode h_contract; + struct GNUNET_HashCode h_proposal_data; struct TALER_MerchantPublicKeyP merchant_pub; }; @@ -680,7 +680,7 @@ within the */ struct GNUNET_CRYPTO_EccSignaturePurpose purpose; struct GNUNET_HashCode h_wire; - struct GNUNET_HashCode h_contract; + struct GNUNET_HashCode h_proposal_data; struct TALER_WireTransferIdentifierRawP wtid; struct TALER_CoinSpendPublicKeyP coin_pub; uint64_t transaction_id; @@ -696,7 +696,7 @@ within the * purpose.purpose = TALER_SIGNATURE_MERCHANT_REFUND */ struct GNUNET_CRYPTO_EccSignaturePurpose purpose; - struct GNUNET_HashCode h_contract GNUNET_PACKED; + struct GNUNET_HashCode h_proposal_data GNUNET_PACKED; uint64_t transaction_id GNUNET_PACKED; struct TALER_CoinSpendPublicKeyP coin_pub; struct TALER_MerchantPublicKeyP merchant; diff --git a/api/api-error.rst b/api/api-error.rst index cf107b11..147d5439 100644 --- a/api/api-error.rst +++ b/api/api-error.rst @@ -1140,7 +1140,7 @@ The following list shows error codes defined in /** * The backend encountered an error while trying to store the - * pair <contract, h_contract> into the database. + * pair <contract, h_proposal_data> into the database. * The response is provided with HTTP status code MHD_HTTP_INTERNAL_SERVER_ERROR. */ TALER_EC_MAP_IN_STORE_DB_ERROR = 2501, diff --git a/api/api-exchange.rst b/api/api-exchange.rst index a0c23684..74cc9a3b 100644 --- a/api/api-exchange.rst +++ b/api/api-exchange.rst @@ -507,7 +507,7 @@ denomination. // SHA-512 hash of the contact of the merchant with the customer. Further // details are never disclosed to the exchange. - H_contract: HashCode; + h_proposal_data: HashCode; // `coin's public key <eddsa-coin-pub>`_, both ECDHE and EdDSA. coin_pub: CoinPublicKey; @@ -985,7 +985,7 @@ typically also view the balance.) interface TrackTransferDetail { // SHA-512 hash of the contact of the merchant with the customer. - H_contract: HashCode; + h_proposal_data: HashCode; // 64-bit transaction id for the transaction between merchant and // customer @@ -1032,7 +1032,7 @@ typically also view the balance.) H_wire: HashCode; // SHA-512 hash of the contact of the merchant with the customer. - H_contract: HashCode; + h_proposal_data: HashCode; // coin's public key, both ECDHE and EdDSA. coin_pub: CoinPublicKey; @@ -1132,7 +1132,7 @@ Refunds refund_fee: Amount; // SHA-512 hash of the contact of the merchant with the customer. - H_contract: HashCode; + h_proposal_data: HashCode; // coin's public key, both ECDHE and EdDSA. coin_pub: CoinPublicKey; diff --git a/api/api-merchant.rst b/api/api-merchant.rst index 92a43dc0..3fafcc7b 100644 --- a/api/api-merchant.rst +++ b/api/api-merchant.rst @@ -269,7 +269,7 @@ The following API are made available by the merchant's `backend` to the merchant merchant_sig: EddsaSignature; // Contract's hash being signed over - h_contract: HashCode; + h_proposal_data: HashCode; } .. http:get:: /track/transfer @@ -472,7 +472,7 @@ The following API are made available by the merchant's `backend` to the merchant transaction_id: number; // Hashcode of the relevant contract - h_contract: HashCode; + h_proposal_data: HashCode; // Exchange's base URL exchange: string; diff --git a/docs/example-essay-store.rst b/docs/example-essay-store.rst index 14cb31dc..c76ce519 100644 --- a/docs/example-essay-store.rst +++ b/docs/example-essay-store.rst @@ -355,8 +355,8 @@ case and reconstructs the contract. contract_resp = sign_contract(restored_contract) # Return error if uuid mismatch with the hashcode coming from the backend - if contract_resp["H_contract"] != hc: - e = jsonify(error="contract mismatch", was=hc, expected=contract_resp["H_contract"]) + if contract_resp["h_proposal_data"] != hc: + e = jsonify(error="contract mismatch", was=hc, expected=contract_resp["h_proposal_data"]) return e, 400 # We save the article's name in the state since after @@ -576,11 +576,11 @@ to the wallet. See below the main steps of its implementation. return e, 400 # Pick the contract's hashcode from deposit permission - hc = deposit_permission.get("H_contract") + hc = deposit_permission.get("h_proposal_data") # Return error if no hashcode was found if hc is None: - e = jsonify(error="malformed deposit permission", hint="H_contract missing") + e = jsonify(error="malformed deposit permission", hint="h_proposal_data missing") return e, 400 # Get a handle to the state for this contract, using the diff --git a/docs/integration-merchant.rst b/docs/integration-merchant.rst index 7cf93044..53187503 100644 --- a/docs/integration-merchant.rst +++ b/docs/integration-merchant.rst @@ -245,8 +245,8 @@ parameters to the wallet, which will: if 200 == response.status_code: # Here we pick the article name from the state defined at # fulfillment time. - # deposit_permission['H_contract'] is the contract hashcode - payed_article = session[deposit_permission['H_contract']]['article_name'] + # deposit_permission['h_proposal_data'] is the contract hashcode + payed_article = session[deposit_permission['h_proposal_data']]['article_name'] session['payed_articles'].append(payed_article) |