gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[taler-docs] 01/02: Cleanup of new denomination grouping


From: gnunet
Subject: [taler-docs] 01/02: Cleanup of new denomination grouping
Date: Wed, 22 Jun 2022 18:01:49 +0200

This is an automated email from the git hooks/post-receive script.

oec pushed a commit to branch master
in repository docs.

commit ea7d022a91662cc249ef07a75086edcd62dac089
Author: Özgür Kesim <oec-taler@kesim.org>
AuthorDate: Wed Jun 22 18:01:15 2022 +0200

    Cleanup of new denomination grouping
---
 core/api-exchange.rst | 84 +++++++++++++++++++++++++++++++--------------------
 1 file changed, 52 insertions(+), 32 deletions(-)

diff --git a/core/api-exchange.rst b/core/api-exchange.rst
index 990a475..0b5b3b7 100644
--- a/core/api-exchange.rst
+++ b/core/api-exchange.rst
@@ -240,6 +240,56 @@ possibly by using HTTPS.
 
   .. ts:def:: DenomGroup
 
+    type DenomGroup =
+      | DenomGroupRsa
+      | DenomGroupCs
+      | DenomGroupRsaAgeRestricted
+      | DenomGroupCsAgeRestricted;
+
+  .. ts:def:: DenomGroupRsa
+
+    interface DenomGroupRsa extends DenomGroupCommon {
+      cipher: "RSA";
+
+      denoms: ({
+        rsa_pub: string;
+      } & DenomCommon)[];
+    }
+
+  .. ts:def:: DenomGroupCs
+
+    interface DenomGroupCs extends DenomGroupCommon {
+      cipher: "CS";
+
+      denoms: ({
+        cs_pub: Cs25519Point;
+      } & DenomCommon)[];
+    }
+
+  .. ts:def:: DenomGroupRsaAgeRestricted
+
+    interface DenomGroupRsaAgeRestricted extends DenomGroupCommon {
+      cipher: "RSA+age_restricted";
+      age_mask: string;
+
+      denoms: ({
+        rsa_pub: string;
+      } & DenomCommon)[];
+    }
+
+  .. ts:def:: DenomGroupCsAgeRestricted
+
+    interface DenomGroupCSAgeRestricted extends DenomGroupCommon {
+      cipher: "CS+age_restricted";
+      age_mask: string;
+
+      denoms: ({
+        cs_pub: Cs25519Point;
+      } & DenomCommon)[];
+    }
+
+  .. ts:def:: DenomGroupCommon
+
     // Common attributes for all denomination groups
     interface DenomGroupCommon {
       // How much are coins of this denomination worth?
@@ -261,6 +311,8 @@ possibly by using HTTPS.
       hash: HashCode;
     }
 
+  .. ts:def:: DenomCommon
+
     interface DenomCommon {
       // Signature of `TALER_DenominationKeyValidityPS`.
       master_sig: EddsaSignature;
@@ -278,38 +330,6 @@ possibly by using HTTPS.
       stamp_expire_legal: Timestamp;
     }
 
-    type DenomGroup =
-      | DenomGroupRsa
-      | DenomGroupCs
-      | DenomGroupRsaAgeRestricted
-      | DenomGroupCsAgeRestricted;
-
-    interface DenomGroupRsa extends DenomGroupCommon {
-      cipher: "RSA";
-
-      denoms: ({
-        rsa_pub: string;
-      } & DenomGroupCommon)[];
-    }
-
-    interface DenomGroupCs extends DenomGroupCommon {
-      cipher: "CS";
-
-      denoms: ({
-        cs_pub: Cs25519Point;
-        age_mask: string;
-      } & DenomGroupCommon)[];
-    }
-
-    interface DenomGroupRsaAgeRestricted extends DenomGroupCommon {
-      cipher: "RSA+age_restricted";
-
-      denoms: ({
-        rsa_pub: string;
-        age_mask: string;
-      } & DenomGroupCommon)[];
-    }
-
   .. ts:def:: Denom
 
     interface Denom {

-- 
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]