[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[taler-docs] branch master updated: AgeMask instead of AgeGroups for /ke
From: |
gnunet |
Subject: |
[taler-docs] branch master updated: AgeMask instead of AgeGroups for /keys response |
Date: |
Sun, 26 Jun 2022 15:55:31 +0200 |
This is an automated email from the git hooks/post-receive script.
oec pushed a commit to branch master
in repository docs.
The following commit(s) were added to refs/heads/master by this push:
new d7e262a AgeMask instead of AgeGroups for /keys response
d7e262a is described below
commit d7e262aa91ee34861f577a8c842368b914d12351
Author: Özgür Kesim <oec-taler@kesim.org>
AuthorDate: Sun Jun 26 15:55:26 2022 +0200
AgeMask instead of AgeGroups for /keys response
---
core/api-exchange.rst | 26 +++++++++++++++++---------
1 file changed, 17 insertions(+), 9 deletions(-)
diff --git a/core/api-exchange.rst b/core/api-exchange.rst
index 68a297f..c99cadc 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;
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [taler-docs] branch master updated: AgeMask instead of AgeGroups for /keys response,
gnunet <=