gnunet-svn
[Top][All Lists]
Advanced

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

[taler-merchant] 08/19: db plugin: better naming for validity


From: gnunet
Subject: [taler-merchant] 08/19: db plugin: better naming for validity
Date: Fri, 22 Dec 2023 17:25:07 +0100

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

grothoff pushed a commit to branch master
in repository merchant.

commit 20632c6a2e293a9799114497d63180a105b37065
Author: Christian Blättler <blatc2@bfh.ch>
AuthorDate: Mon Nov 20 08:00:43 2023 +0100

    db plugin: better naming for validity
---
 src/include/taler_merchantdb_plugin.h | 22 +++++++++++++---------
 1 file changed, 13 insertions(+), 9 deletions(-)

diff --git a/src/include/taler_merchantdb_plugin.h 
b/src/include/taler_merchantdb_plugin.h
index 66955ce5..631cdcd5 100644
--- a/src/include/taler_merchantdb_plugin.h
+++ b/src/include/taler_merchantdb_plugin.h
@@ -1095,6 +1095,11 @@ enum TALER_MERCHANTDB_TokenFamilyKind
  */
 struct TALER_MERCHANTDB_TokenFamilyDetails
 {
+  /**
+   * Token family slug used for identification.
+   */
+  char* slug;
+
   /**
    * User readable name of the token family.
    */
@@ -1123,14 +1128,13 @@ struct TALER_MERCHANTDB_TokenFamilyDetails
   /**
    * Counter for each issued token of this family.
    */
-  */
   uint64_t issued;
 
   /**
    * Counter for each redeemed token of this family.
    */
   uint64_t redeemed;
-}
+};
 
 
 /**
@@ -1141,17 +1145,17 @@ struct TALER_MERCHANTDB_TokenFamilyKeyDetails
   /**
    * Tokens signed with this key are valid from this date on.
    */
-  struct GNUNET_TIME_Timestamp start_date;
+  struct GNUNET_TIME_Timestamp valid_after;
 
   /**
    * Tokens signed with this key are valid until this date.
    */
-  struct GNUNET_TIME_Timestamp expiration_date;
+  struct GNUNET_TIME_Timestamp valid_before;
 
   /**
    * Token family public key.
    */
-  union TALER_TokenFamilyPublicKey pub;
+  struct TALER_TokenFamilyPublicKey pub;
 
   /**
    * Hash of the token family public key.
@@ -1161,13 +1165,13 @@ struct TALER_MERCHANTDB_TokenFamilyKeyDetails
   /**
    * Token family private key.
   */
-  union TALER_TokenFamilyPrivateKey priv;
+  struct TALER_TokenFamilyPrivateKey priv;
 
   /**
    * Token family key cipher.
    */
-  enum TALER_MERCHANTDB_TokenKeyCipher cipher;
-}
+  // enum TALER_MERCHANTDB_TokenKeyCipher cipher;
+};
 
 /**
  * Details about a spent token.
@@ -1188,7 +1192,7 @@ struct TALER_MERCHANTDB_SpentTokenDetails
    * Blind signature for the spent token to prove validity of it.
   */
   struct TALER_TokenBlindSignature blind_sig;
-}
+};
 
 
 /**

-- 
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]