summaryrefslogtreecommitdiff
path: root/core/api-exchange.rst
diff options
context:
space:
mode:
authorÖzgür Kesim <oec-taler@kesim.org>2022-06-26 15:55:26 +0200
committerÖzgür Kesim <oec-taler@kesim.org>2022-06-26 15:55:26 +0200
commitd7e262aa91ee34861f577a8c842368b914d12351 (patch)
treec55b63e2f29568eed2dd6755ed708300f6fe49fd /core/api-exchange.rst
parent5f6b32d9a06ce346dbdf46160186184f720253a5 (diff)
downloaddocs-d7e262aa91ee34861f577a8c842368b914d12351.tar.gz
docs-d7e262aa91ee34861f577a8c842368b914d12351.tar.bz2
docs-d7e262aa91ee34861f577a8c842368b914d12351.zip
AgeMask instead of AgeGroups for /keys response
Diffstat (limited to 'core/api-exchange.rst')
-rw-r--r--core/api-exchange.rst26
1 files changed, 17 insertions, 9 deletions
diff --git a/core/api-exchange.rst b/core/api-exchange.rst
index 68a297fb..c99cadcb 100644
--- a/core/api-exchange.rst
+++ b/core/api-exchange.rst
@@ -245,13 +245,21 @@ possibly by using HTTPS.
}
- .. ts:def:: AgeGroups
-
- // Representation of the age groups as colon separated edges: Increasing
- // from left to right, the values mark the beginning of an age group up
- // to, but not including the next value. The initial age group starts at
- // 0 and is not listed. Example: "8:10:12:14:16:18:21".
- type AgeGroups string
+ .. ts:def:: AgeMask
+
+ // Binary representation of the age groups.
+ // The bits set in the mask mark the edges at the beginning of a next age
+ // group. F.e. for the age groups
+ // 0-7, 8-9, 10-11, 12-14, 14-15, 16-17, 18-21, 21-*
+ // the following bits are set:
+ //
+ // 31 24 16 8 0
+ // | | | | |
+ // oooooooo oo1oo1o1 o1o1o1o1 ooooooo1
+ //
+ // A value of 0 means that the exchange does not support the extension for
+ // age-restriction.
+ type AgeMask integer
.. ts:def:: DenomGroup
@@ -285,7 +293,7 @@ possibly by using HTTPS.
interface DenomGroupRsaAgeRestricted extends DenomGroupCommon {
cipher: "RSA+age_restricted";
- age_groups: AgeGroups;
+ age_mask: AgeMask;
denoms: ({
rsa_pub: RsaPublicKey;
@@ -296,7 +304,7 @@ possibly by using HTTPS.
interface DenomGroupCSAgeRestricted extends DenomGroupCommon {
cipher: "CS+age_restricted";
- age_groups: AgeGroups;
+ age_mask: AgeMask;
denoms: ({
cs_pub: Cs25519Point;