View Issue Details
| ID | Project | Category | View Status | Date Submitted | Last Update |
|---|---|---|---|---|---|
| 0012250 | Taler | documentation | public | 2026-11-21 10:27 | 2026-11-29 15:59 |
| Reporter | bot-oec [agent] | ||||
| Priority | normal | Severity | text | ||
| Status | new | ||||
| Summary | 0012250: `api-common.rst`: AML decision, officer status, account setup, reserve history and reserve close signatures are documented out of date | ||||
| Description | - `TALER_AmlDecisionPS` (`api-common.rst`) lists the pre-v20 fields (`new_threshold`, `h_kyc_requirements`, `new_state`). The exchange signs `decision_time`, `attributes_expiration_time`, `h_payto`, `h_justification`, `h_properties`, `h_new_rules`, `h_new_measure`, `h_attributes` and the investigation flag (`aml_signatures.c`). `AmlDecisionRequest.officer_sig` names the purpose `TALER_SIGNATURE_MASTER_AML_KEY`; it is `TALER_SIGNATURE_AML_DECISION`. - `TALER_MasterAmlOfficerStatusPS` documents `is_active` only; the exchange encodes `read_only` in the same field (value 2), so the master key does authorize it. - `TALER_AccountSetupRequestSignaturePS` (`/kyc-wallet`) covers the threshold only, no exchange and no time. - `TALER_ReserveHistoryRequestSignaturePS` is documented with a fee and a timestamp; since v46 the request is a `GET` whose signature covers the start offset only. - `TALER_ReserveCloseRequestSignaturePS` (`/reserves/$RESERVE_PUB/close`, where a target other than the origin needs KYC) is documented with its purpose only; the exchange signs and checks the request timestamp and the hash of the target account (`wallet_signatures.c`, `TALER_wallet_reserve_close_sign`). **Proposed change:** document the structures as the exchange signs them. **Found by:** the formalization of the Taler protocols; comparison of `api-common.rst` with the exchange's `aml_signatures.c` and `wallet_signatures.c` while specifying `spec/kyc.md`. | ||||
| Tags | No tags attached. | ||||
| Proposed patch (taler-docs master b3970cce): TALER_AmlDecisionPS, TALER_MasterAmlOfficerStatusPS (the read-only flag in is_active), TALER_ReserveHistoryRequestSignaturePS and TALER_ReserveCloseRequestSignaturePS as src/util/aml_signatures.c, offline_signatures.c and wallet_signatures.c sign them; AmlDecisionRequest.officer_sig has purpose TALER_SIGNATURE_AML_DECISION. TALER_AccountSetupRequestSignaturePS is documented as the exchange signs it; that it covers neither the exchange nor a time is a property of the protocol, not of the documentation. diff --git a/core/api-common.rst b/core/api-common.rst index dc97ac42..aa148986 100644 --- a/core/api-common.rst +++ b/core/api-common.rst @@ -2121,8 +2121,8 @@ within the * purpose.purpose = TALER_SIGNATURE_RESERVE_HISTORY_REQUEST */ struct GNUNET_CRYPTO_EccSignaturePurpose purpose; - struct TALER_AmountNBO history_fee; - struct GNUNET_TIME_AbsoluteNBO request_timestamp; + // the "start" offset of the request (since v46, GET without fee) + uint64_t start_off; }; @@ -2162,6 +2162,10 @@ within the * purpose.purpose = TALER_SIGNATURE_WALLET_RESERVE_CLOSE */ struct GNUNET_CRYPTO_EccSignaturePurpose purpose; + struct GNUNET_TIME_TimestampNBO request_timestamp; + // hash of the full payto URI of the target account; all zeros if the + // reserve is to be closed to the account it was funded from + struct TALER_FullPaytoHashP target_account_h_payto; }; @@ -2465,6 +2469,7 @@ within the struct GNUNET_TIME_TimestampNBO change_date; struct TALER_AmlOfficerPublicKeyP officer_pub; struct GNUNET_HashCode h_officer_name GNUNET_PACKED; + // 1 if the officer is active, plus 2 if read-only uint32_t is_active GNUNET_PACKED; }; @@ -2476,12 +2481,18 @@ within the * purpose.purpose =TALER_SIGNATURE_AML_DECISION. */ struct GNUNET_CRYPTO_EccSignaturePurpose purpose; - struct GNUNET_HashCode h_justification GNUNET_PACKED; struct GNUNET_TIME_TimestampNBO decision_time; - struct TALER_AmountNBO new_threshold; + struct GNUNET_TIME_TimestampNBO attributes_expiration_time; struct TALER_NormalizedPaytoHashP h_payto GNUNET_PACKED; - struct GNUNET_HashCode h_kyc_requirements; - uint32_t new_state GNUNET_PACKED; + struct GNUNET_HashCode h_justification GNUNET_PACKED; + struct GNUNET_HashCode h_properties GNUNET_PACKED; + struct GNUNET_HashCode h_new_rules; + // all zeros if no new measure + struct GNUNET_HashCode h_new_measure; + // all zeros if no attributes + struct GNUNET_HashCode h_attributes; + // 1 if the account is to be investigated, 0 otherwise + uint64_t flags; }; .. _TALER_PartnerConfigurationPS: diff --git a/core/exchange/post-aml-OFFICER_PUB-decision.rst b/core/exchange/post-aml-OFFICER_PUB-decision.rst index f4e5cb67..9fb48cdc 100644 --- a/core/exchange/post-aml-OFFICER_PUB-decision.rst +++ b/core/exchange/post-aml-OFFICER_PUB-decision.rst @@ -101,7 +101,7 @@ keep_investigating: boolean; // Signature by the AML officer over a `TALER_AmlDecisionPS`. - // Must have purpose ``TALER_SIGNATURE_MASTER_AML_KEY``. + // Must have purpose ``TALER_SIGNATURE_AML_DECISION``. officer_sig: EddsaSignature; // When was the decision made? | |
| Date Modified | Username | Field | Change |
|---|---|---|---|
| 2026-11-21 10:27 | bot-oec | New Issue | |
| 2026-11-21 10:27 | bot-oec | Relationship added | related to 0012242 |
| 2026-11-21 10:27 | bot-oec | Relationship added | related to 0012241 |
| 2026-11-21 10:27 | bot-oec | Implementer | => mikolai |
| 2026-11-21 10:27 | bot-oec | Reviewer | => Stefan |
| 2026-11-21 10:27 | bot-oec | Release signed by | => Antoine A |
| 2026-11-21 10:27 | bot-oec | Deployed by | => Alexis_Lafargue |
| 2026-11-21 10:27 | bot-oec | Verifier | => Antoine A |
| 2026-11-21 10:27 | bot-oec | Communicator | => CM_7 |
| 2026-11-21 16:04 | oec | Implementer | mikolai => |
| 2026-11-21 16:04 | oec | Reviewer | Stefan => Christian Grothoff |
| 2026-11-21 16:04 | oec | Release signed by | Antoine A => Florian Dold |
| 2026-11-21 16:04 | oec | Deployed by | Alexis_Lafargue => Florian Dold |
| 2026-11-21 16:04 | oec | Verifier | Antoine A => Florian Dold |
| 2026-11-21 22:43 | Christian Grothoff | Severity | minor => text |
| 2026-11-21 23:21 | bot-oec | Note Added: 0030725 | |
| 2026-11-29 15:59 | Christian Grothoff | View Status | private => public |