[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] [taler-anastasis] branch master updated: adjusted headers a
From: |
gnunet |
Subject: |
[GNUnet-SVN] [taler-anastasis] branch master updated: adjusted headers and errors |
Date: |
Thu, 10 Oct 2019 17:34:22 +0200 |
This is an automated email from the git hooks/post-receive script.
ds-meister pushed a commit to branch master
in repository anastasis.
The following commit(s) were added to refs/heads/master by this push:
new 04b7dff adjusted headers and errors
04b7dff is described below
commit 04b7dffae06311cb10b9c597cc228efbe88b15b3
Author: Dominik Meister <address@hidden>
AuthorDate: Thu Oct 10 17:34:10 2019 +0200
adjusted headers and errors
---
src/include/anastasis_database_plugin.h | 38 ++++++++++++++++++++++++++-------
1 file changed, 30 insertions(+), 8 deletions(-)
diff --git a/src/include/anastasis_database_plugin.h
b/src/include/anastasis_database_plugin.h
index 0539b83..8f2da87 100644
--- a/src/include/anastasis_database_plugin.h
+++ b/src/include/anastasis_database_plugin.h
@@ -41,6 +41,13 @@ struct ANASTASIS_PaymentSecretP {
uint32_t id[8];
};
+/**
+ * UUID Identifier for a Truth document
+ */
+struct ANASTASIS_uuid {
+ char uuid[36];
+};
+
/**
* Handle to interact with the database.
@@ -180,14 +187,26 @@ struct AnastasisDatabasePlugin
void **data,
uint32_t *version);
-
- /**
- *
- */
+/**
+ * Upload Truth, which contains the Truth and the KeyShare.
+ *
+ * @param cls closure
+ * @param uuid the identifier for the Truth
+ * @param truth contains the ground truth i.e. H(challange answer),
phonenumber, SMS
+ * @param truth_size the size of the Truth
+ * @param key_share_data blob which contains the Keyshare, the nonce and the
aes tag
+ * @param key_share_data_size Size of the blob
+ * @param truth_method contains a description of the method used for
retrieving the truth
+ * @param size_truth_method size of the truth_method String
+ * @param truth_mimetype the mimetype used for the Truth (security answer
encoding)
+ * @param size_truth_mimetype size of the truth_mimetype String
+ * @return transaction status
+ */
enum GNUNET_DB_QueryStatus
(*store_truth) (void *cls,
- const void *truth_data,
- size_t truth_data_size,
+ const struct ANASTASIS_uuid *uuid,
+ const void *truth,
+ size_t truth_size,
const void *key_share_data,
size_t key_share_data_size,
char *truth_method,
@@ -198,11 +217,14 @@ struct AnastasisDatabasePlugin
/**
- *
+ * @param cls closure
+ * @param uuid the identifier for the Truth
*/
enum GNUNET_DB_QueryStatus
(*get_encrypted_key_share) (void *cls,
- char method_uuid[36]);
+ const struct ANASTASIS_uuid *uuid);
+
+
/**
--
To stop receiving notification emails like this one, please contact
address@hidden.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] [taler-anastasis] branch master updated: adjusted headers and errors,
gnunet <=