aboutsummaryrefslogtreecommitdiff
path: root/src/zklaim/zklaim_functions.h
diff options
context:
space:
mode:
authorSchanzenbach, Martin <martin.schanzenbach@aisec.fraunhofer.de>2018-08-17 15:04:19 +0200
committerSchanzenbach, Martin <martin.schanzenbach@aisec.fraunhofer.de>2018-08-17 15:04:19 +0200
commit9dfd05ddd6933e9e46804d7db47cea149f24d8d4 (patch)
treeecbc0b1e52ea72cfadb4cbcaa226da7db1d1376a /src/zklaim/zklaim_functions.h
parent8cd6146318d890c5cb18a2edb72090feee9729b2 (diff)
downloadgnunet-9dfd05ddd6933e9e46804d7db47cea149f24d8d4.tar.gz
gnunet-9dfd05ddd6933e9e46804d7db47cea149f24d8d4.zip
towards zklaim prove
Diffstat (limited to 'src/zklaim/zklaim_functions.h')
-rw-r--r--src/zklaim/zklaim_functions.h46
1 files changed, 46 insertions, 0 deletions
diff --git a/src/zklaim/zklaim_functions.h b/src/zklaim/zklaim_functions.h
new file mode 100644
index 000000000..558485ed3
--- /dev/null
+++ b/src/zklaim/zklaim_functions.h
@@ -0,0 +1,46 @@
1#ifndef GNUNET_ZKLAIM_FUNCTIONS_H
2#define GNUNET_ZKLAIM_FUNCTIONS_H
3
4#include "gnunet_zklaim_service.h"
5
6/**
7 * Handle for an ego.
8 */
9struct GNUNET_ZKLAIM_Context
10{
11 /**
12 * ZKlaim context.
13 */
14 struct zklaim_ctx *ctx;
15
16 /**
17 * Current name associated with this context.
18 */
19 char *name;
20
21 /**
22 * Attributes associated with context
23 */
24 char *attrs;
25
26};
27
28
29
30int
31ZKLAIM_context_sign (struct GNUNET_ZKLAIM_Context *ctx,
32 const struct GNUNET_CRYPTO_EcdsaPrivateKey *key);
33
34
35void
36ZKLAIM_context_attributes_iterate (const struct GNUNET_ZKLAIM_Context *ctx,
37 GNUNET_ZKLAIM_PayloadIterator iter,
38 void *iter_cls);
39
40
41void
42ZKLAIM_context_issue (struct GNUNET_ZKLAIM_Context *ctx,
43 const struct GNUNET_CRYPTO_EcdsaPrivateKey *key,
44 GNUNET_ZKLAIM_PayloadIterator iter,
45 void *iter_cls);
46#endif