[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.
- [taler-merchant] branch master updated (078f26f0 -> 2eec9cf0), gnunet, 2023/12/22
- [taler-merchant] 01/19: create token_families and spent_tokens tables, gnunet, 2023/12/22
- [taler-merchant] 04/19: detail structs for token family, keys and spent tokens, gnunet, 2023/12/22
- [taler-merchant] 06/19: review feedback, gnunet, 2023/12/22
- [taler-merchant] 03/19: create separate merchant_token_keys table, gnunet, 2023/12/22
- [taler-merchant] 02/19: gitignore .DS_Store files, gnunet, 2023/12/22
- [taler-merchant] 16/19: remove init lines, gnunet, 2023/12/22
- [taler-merchant] 05/19: remove unused enum, gnunet, 2023/12/22
- [taler-merchant] 14/19: refactor phases and parsing logic, gnunet, 2023/12/22
- [taler-merchant] 13/19: fix order serialization so test are passing, gnunet, 2023/12/22
- [taler-merchant] 08/19: db plugin: better naming for validity,
gnunet <=
- [taler-merchant] 17/19: products should be optional, gnunet, 2023/12/22
- [taler-merchant] 18/19: -nicer logging, gnunet, 2023/12/22
- [taler-merchant] 12/19: set next phase at the end of serialize phase, gnunet, 2023/12/22
- [taler-merchant] 15/19: add TALER_MERCHANTDB_token_family_details_free, gnunet, 2023/12/22
- [taler-merchant] 07/19: db: better naming for validity period, gnunet, 2023/12/22
- [taler-merchant] 19/19: -fix expected HTTP status codes, gnunet, 2023/12/22
- [taler-merchant] 10/19: list, update, delete token families, gnunet, 2023/12/22
- [taler-merchant] 11/19: start with post orders handler refactoring, gnunet, 2023/12/22
- [taler-merchant] 09/19: POST /tokenfamilies endpoint, gnunet, 2023/12/22