View Issue Details

IDProjectCategoryView StatusLast Update
0012252Talerdocumentationpublic2026-11-29 15:59
Reporterbot-oec [agent]  
PrioritynormalSeveritytext 
Status new 
Summary0012252: KYC: the API documentation does not state which account a rule counts for
DescriptionThe API documentation does not state which account a KYC rule's operations are counted for. Withdrawals count for the reserve's origin bank account, over all reserves credited from it (design document 023: "key: IBAN"); a reserve created by a merge has no origin and is limited by the `MERGE` rules only. `CLOSE` ("(reserve)") counts for the target of a close request to an account other than the origin; closings to the origin, also at the deadline, are not limited. Counting withdrawals per reserve instead lets an amount be split over reserves from one bank account (TLA+ configuration `models/tla/MCKycPerReserve.cfg` violates KY1 of `spec/kyc.md`).

**Proposed change:** state for each operation type the account it is counted for, as above (`spec/kyc.md`, Rules).

**Found by:** the formalization of the Taler protocols; the TLA+ model of KYC limits (`MCKycPerReserve`), against KY1 in `spec/kyc.md`.
TagsNo tags attached.

Required notifications

Address or linkRemarkAdded byNotifiedActions

Relationships

related to 0012253 new KYC: whether a bank account has one KYC key or several is not stated 
related to 0012256 new KYC: a close request to another account is checked with the balance at the request, but the closing wires the balance at the closing 

Activities

bot-oec [agent]

2026-11-21 23:22

reporter   ~0030726

Proposed patch (taler-docs master b3970cce): KycRule.operation_type states the account each type counts for, as the exchange counts (iterate_*_amounts_for_kyc_check) and spec/kyc.md (Rules) states it. It also covers 0012257 (REFUND rules: the merchant's account, before a refund); the exchange does not check REFUND rules yet (#12278). Open payment requests into the reserve count once #12281 is fixed; TRANSACTION is left as it is.

diff --git a/core/exchange/get-aml-OFFICER_PUB-decisions.rst b/core/exchange/get-aml-OFFICER_PUB-decisions.rst
index 69a1f792..eb81f6a1 100644
--- a/core/exchange/get-aml-OFFICER_PUB-decisions.rst
+++ b/core/exchange/get-aml-OFFICER_PUB-decisions.rst
@@ -206,6 +206,20 @@
       // (p2p) "MERGE", (wallet) "BALANCE",
       // (reserve) "CLOSE", "AGGREGATE",
       // "TRANSACTION" or "REFUND".
+ //
+ // The account whose operations a rule counts:
+ // "WITHDRAW": withdrawals from all reserves funded
+ // from the bank account;
+ // "DEPOSIT", "AGGREGATE": deposits for, and transfers
+ // to, the merchant's bank account;
+ // "REFUND": refunds of the merchant whose bank account
+ // the deposits were for, checked before a refund;
+ // "MERGE": merges into the reserve (the wallet's
+ // account), and payment requests into it while open;
+ // "CLOSE": closings to the bank account a close
+ // request names, if it is not the account the reserve
+ // was funded from;
+ // "BALANCE": the wallet's balance, checked by the wallet.
       operation_type: string;
 
       // Name of the configuration section this rule

Issue History

Date ModifiedUsernameFieldChange
2026-11-21 10:27bot-oecNew Issue
2026-11-21 10:27bot-oecImplementer => Amoui NGoran
2026-11-21 10:27bot-oecReviewer => Alexis_Lafargue
2026-11-21 10:27bot-oecRelease signed by => Antoine A
2026-11-21 10:27bot-oecDeployed by => Antoine A
2026-11-21 10:27bot-oecVerifier => Emmanuel
2026-11-21 10:27bot-oecCommunicator => CM_7
2026-11-21 16:05oecImplementerAmoui NGoran =>
2026-11-21 16:05oecReviewerAlexis_Lafargue => Christian Grothoff
2026-11-21 16:05oecRelease signed byAntoine A => Florian Dold
2026-11-21 16:05oecDeployed byAntoine A => Florian Dold
2026-11-21 16:05oecVerifierEmmanuel => Florian Dold
2026-11-21 22:43Christian GrothoffSeverityminor => text
2026-11-21 23:22bot-oecNote Added: 0030726
2026-11-29 15:59Christian GrothoffView Statusprivate => public