gnunet-svn
[Top][All Lists]
Advanced

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

[GNUnet-SVN] [taler-anastasis] branch master updated: Worked on db plugi


From: gnunet
Subject: [GNUnet-SVN] [taler-anastasis] branch master updated: Worked on db plugin
Date: Thu, 10 Oct 2019 16:06:54 +0200

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

dennis-neufeld pushed a commit to branch master
in repository anastasis.

The following commit(s) were added to refs/heads/master by this push:
     new 08003e3  Worked on db plugin
08003e3 is described below

commit 08003e3fd244fc51fd7a33d36162b9a306675a69
Author: Dennis Neufeld <address@hidden>
AuthorDate: Thu Oct 10 16:06:50 2019 +0200

    Worked on db plugin
---
 src/include/anastasis_database_plugin.h | 55 ++++++++++++++++++++++-----------
 1 file changed, 37 insertions(+), 18 deletions(-)

diff --git a/src/include/anastasis_database_plugin.h 
b/src/include/anastasis_database_plugin.h
index f783e1e..0539b83 100644
--- a/src/include/anastasis_database_plugin.h
+++ b/src/include/anastasis_database_plugin.h
@@ -45,7 +45,7 @@ struct ANASTASIS_PaymentSecretP {
 /**
  * Handle to interact with the database.
  */
-struct Anastasis_MERCHANTDB_Plugin;
+struct Anastasis_DB_Plugin;
 
 
 /**
@@ -72,7 +72,7 @@ struct AnastasisDatabasePlugin
   char *library_name;
 
   /**
-   * Drop merchant tables. Used for testcases.
+   * Drop anastasis tables. Used for testcases.
    *
    * @param cls closure
    * @return #GNUNET_OK upon success; #GNUNET_SYSERR upon failure
@@ -81,7 +81,7 @@ struct AnastasisDatabasePlugin
   (*drop_tables) (void *cls);
 
   /**
-   * Initialize merchant tables
+   * Initialize anastasis tables
    *
    * @param cls closure
    * @return #GNUNET_OK upon success; #GNUNET_SYSERR upon failure
@@ -139,7 +139,7 @@ struct AnastasisDatabasePlugin
    *         did not have enough upload left; HARD error if @a payment_secret 
is unknown, ...
    */
   enum GNUNET_DB_QueryStatus
-  (*upload_recovery_document) (void *cls,
+  (*store_recovery_document) (void *cls,
                               const struct ANASTASIS_AccountPubP *account_pub,
                               const void *data,
                               size_t data_size,
@@ -147,45 +147,64 @@ struct AnastasisDatabasePlugin
                               uint32_t *version);
 
   /**
-   * Fetch policy for user.
+   * Fetch recovery document for user.
    *
    * @param cls closure
    * @param account_pub public key of the user's account
-   * @param version FIXME
-   * @param aes_gcm_tag[OUT] FIXME
-   * @param encrypted_recovery_document[OUT] FIXME
-   * @param payment_secret identifier for the payment, used to later charge on 
uploads
+   * @param version[OUT] set to the version number of the policy the user 
requested
+   * @param data_size size of data blob
+   * @param data blob which contains the recovery document
    * @return transaction status
    */
   enum GNUNET_DB_QueryStatus
-  (*get_policy) (void *cls,
+  (*get_recovery_document) (void *cls,
                 const struct ANASTASIS_AccountPubP *account_pub,
                 uint32_t version,
                 size_t *data_size,
                 void **data);
 
-
   /**
-   * Fetch latest policy for user.
+   * Fetch latest recovery document for user.
    *
    * @param cls closure
    * @param account_pub public key of the user's account
    * @param version[OUT] set to the version number of the policy being returned
-   * @param aes_gcm_tag[OUT] FIXME
-   * @param encrypted_recovery_document[OUT] FIXME
-   * @param payment_secret identifier for the payment, used to later charge on 
uploads
+   * @param data_size size of data blob
+   * @param data blob which contains the recovery document
    * @return transaction status
    */
   enum GNUNET_DB_QueryStatus
-  (*get_latest_policy) (void *cls,
+  (*get_latest_recovery_document) (void *cls,
                        const struct ANASTASIS_AccountPubP *account_pub,
                        size_t *data_size,
                        void **data,
                        uint32_t *version);
 
 
-   // TRUTH?
-  
+  /**
+  *
+  */
+  enum GNUNET_DB_QueryStatus
+  (*store_truth) (void *cls,
+      const void *truth_data,
+      size_t truth_data_size,
+      const void *key_share_data,
+      size_t key_share_data_size,
+      char *truth_method,
+      size_t size_truth_method,
+      char *truth_mimetype,
+      size_t size_truth_mimetype,
+      struct GNUNET_TIME_Relative truth_expiration);
+
+
+  /**
+  *
+  */
+  enum GNUNET_DB_QueryStatus
+  (*get_encrypted_key_share) (void *cls,
+      char method_uuid[36]);
+
+
   /**
    *
    * @param cls the plugin-specific state

-- 
To stop receiving notification emails like this one, please contact
address@hidden.



reply via email to

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