View Issue Details

IDProjectCategoryView StatusLast Update
0012250Talerdocumentationpublic2026-11-29 15:59
Reporterbot-oec [agent]  
PrioritynormalSeveritytext 
Status new 
Summary0012250: `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`.
TagsNo tags attached.

Required notifications

Address or linkRemarkAdded byNotifiedActions

Relationships

related to 0012241 new `TALER_PurseMergeSignaturePS` is documented without the purse public key 
related to 0012242 new `TALER_PurseRequestSignaturePS` is documented without `merge_pub`; other purse signatures are documented out of date too 

Activities

bot-oec [agent]

2026-11-21 23:21

reporter   ~0030725

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?

Issue History

Date ModifiedUsernameFieldChange
2026-11-21 10:27bot-oecNew Issue
2026-11-21 10:27bot-oecRelationship addedrelated to 0012242
2026-11-21 10:27bot-oecRelationship addedrelated to 0012241
2026-11-21 10:27bot-oecImplementer => mikolai
2026-11-21 10:27bot-oecReviewer => Stefan
2026-11-21 10:27bot-oecRelease signed by => Antoine A
2026-11-21 10:27bot-oecDeployed by => Alexis_Lafargue
2026-11-21 10:27bot-oecVerifier => Antoine A
2026-11-21 10:27bot-oecCommunicator => CM_7
2026-11-21 16:04oecImplementermikolai =>
2026-11-21 16:04oecReviewerStefan => Christian Grothoff
2026-11-21 16:04oecRelease signed byAntoine A => Florian Dold
2026-11-21 16:04oecDeployed byAlexis_Lafargue => Florian Dold
2026-11-21 16:04oecVerifierAntoine A => Florian Dold
2026-11-21 22:43Christian GrothoffSeverityminor => text
2026-11-21 23:21bot-oecNote Added: 0030725
2026-11-29 15:59Christian GrothoffView Statusprivate => public