View Issue Details
| ID | Project | Category | View Status | Date Submitted | Last Update |
|---|---|---|---|---|---|
| 0012225 | Taler | documentation | public | 2026-11-19 08:28 | 2026-11-21 23:23 |
| Reporter | bot-oec [agent] | ||||
| Implementer | oec | ||||
| Estimated effort (hours) | 0.5 | ||||
| Fast-track | Yes — The control, the release and the deployment are skipped: whoever implemented this change verifies and closes it themselves. | ||||
| Priority | normal | Severity | text | ||
| Status | implementing | ||||
| Summary | 0012225: Document that minimum_age is verified for the age group it falls into at the coin's exchange | ||||
| Description | The age groups are the unit of age verification. A contract's minimum_age (an age in years) is verified for its group: the wallet attests with the key of group(minimum_age), and the merchant checks against the same key. With the groups 8:10:12:14:16:18:21, minimum_age = 13 is verified as the group [12, 14). The documentation does not say this: - design-documents/024-age-restriction.rst ("Claiming the order") says minimum_age "can be any integer greater than 0". - api-merchant.rst (ContractBaseTerms.minimum_age, TemplateContractCommon.minimum_age) and the product endpoints (post-private-products.rst and others) describe it as a plain age. Expected: state in these places that minimum_age stays an age and is verified, per coin, for the age group it falls into at that coin's exchange. The effective minimum age is therefore the start of that group in the exchange's age mask. If a merchant accepts exchanges with different age groups, the same minimum_age can correspond to different groups. Point to where an exchange publishes its age groups (/keys, age restriction extension). taler-docs ceeae498. | ||||
| Tags | No tags attached. | ||||
| related to | 0012226 | acknowledged | Show the verified age group, not only minimum_age, when a payment requires an age proof |
| Proposed patch (taler-docs master b3970cce): design document 024 ("Claiming the order") and the two minimum_age fields of api-merchant.rst state that minimum_age is verified, per coin, for the age group it falls into at the coin's exchange. diff --git a/core/api-merchant.rst b/core/api-merchant.rst index 7cc08655..eff327b6 100644 --- a/core/api-merchant.rst +++ b/core/api-merchant.rst @@ -1487,6 +1487,9 @@ open or deferred. max_pickup_duration?: RelativeTime; // Minimum age buyer must have (in years). Default is 0. + // Verified, per coin, for the age group it falls into in the + // age mask of the coin's exchange (age restriction extension + // in ``/keys``), so the effective minimum is that group's start. minimum_age?: Integer; // Inventory-cart: request a tip during instantiation. @@ -1798,6 +1801,9 @@ and basically present (or optional) all the time. // mimimum age requirements of the products in this contract. // It might also be set independent of any product, due to // legal requirements. + // Verified, per coin, for the age group it falls into in the + // age mask of the coin's exchange (age restriction extension + // in ``/keys``), so the effective minimum is that group's start. minimum_age?: Integer; // Default money pot to use for this order, applies to the diff --git a/design-documents/024-age-restriction.rst b/design-documents/024-age-restriction.rst index b4ec86d8..cc1bf4b5 100644 --- a/design-documents/024-age-restriction.rst +++ b/design-documents/024-age-restriction.rst @@ -614,6 +614,13 @@ minimum age in response to order claim by the wallet, that is, a POST to The object ``ContractTerms`` is extended by an optional field ``minimum_age`` that can be any integer greater than 0. In reality this value will not be smaller than, say, 8, and not larger than, say, 21. +It stays an age, but it is verified, per coin, for the age group it falls +into at that coin's exchange: the wallet attests with the key of that group, +and the merchant checks against it. The effective minimum age is therefore +the start of that group in the exchange's age mask (with the groups +8:10:12:14:16:18:21, a ``minimum_age`` of 13 is verified as the group +[12, 14)); exchanges with different age groups verify the same +``minimum_age`` for different groups. .. ts:def:: DD24ContractTerms | |
| Date Modified | Username | Field | Change |
|---|---|---|---|
| 2026-11-19 08:28 | bot-oec | New Issue | |
| 2026-11-19 08:28 | bot-oec | Implementer | => Alexis_Lafargue |
| 2026-11-19 08:28 | bot-oec | Reviewer | => Amoui NGoran |
| 2026-11-19 08:28 | bot-oec | Release signed by | => Antoine A |
| 2026-11-19 08:28 | bot-oec | Deployed by | => Alexis_Lafargue |
| 2026-11-19 08:28 | bot-oec | Verifier | => Alexis_Lafargue |
| 2026-11-19 08:28 | bot-oec | Communicator | => CM_7 |
| 2026-11-19 18:22 | Christian Grothoff | Implementer | Alexis_Lafargue => oec |
| 2026-11-19 18:22 | Christian Grothoff | Reviewer | Amoui NGoran => Christian Grothoff |
| 2026-11-19 18:22 | Christian Grothoff | Release signed by | Antoine A => oec |
| 2026-11-19 18:22 | Christian Grothoff | Deployed by | Alexis_Lafargue => |
| 2026-11-19 18:22 | Christian Grothoff | Verifier | Alexis_Lafargue => |
| 2026-11-19 18:22 | Christian Grothoff | Communicator | CM_7 => |
| 2026-11-19 18:22 | Christian Grothoff | Severity | minor => text |
| 2026-11-19 18:22 | Christian Grothoff | Fast-track | 0 => 1 |
| 2026-11-19 18:22 | Christian Grothoff | Locked by | => Christian Grothoff |
| 2026-11-19 18:22 | Christian Grothoff | Status | new => planning |
| 2026-11-19 18:22 | Christian Grothoff | Locked by | Christian Grothoff => |
| 2026-11-19 18:22 | Christian Grothoff | Status | planning => implementing |
| 2026-11-21 10:27 | oec | Estimated effort (hours) | => 0.5 |
| 2026-11-21 23:23 | bot-oec | Note Added: 0030731 |