diff options
author | Schanzenbach, Martin <martin.schanzenbach@aisec.fraunhofer.de> | 2018-08-17 15:04:19 +0200 |
---|---|---|
committer | Schanzenbach, Martin <martin.schanzenbach@aisec.fraunhofer.de> | 2018-08-17 15:04:19 +0200 |
commit | 9dfd05ddd6933e9e46804d7db47cea149f24d8d4 (patch) | |
tree | ecbc0b1e52ea72cfadb4cbcaa226da7db1d1376a /src/zklaim/zklaim_functions.h | |
parent | 8cd6146318d890c5cb18a2edb72090feee9729b2 (diff) | |
download | gnunet-9dfd05ddd6933e9e46804d7db47cea149f24d8d4.tar.gz gnunet-9dfd05ddd6933e9e46804d7db47cea149f24d8d4.zip |
towards zklaim prove
Diffstat (limited to 'src/zklaim/zklaim_functions.h')
-rw-r--r-- | src/zklaim/zklaim_functions.h | 46 |
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 | */ | ||
9 | struct 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 | |||
30 | int | ||
31 | ZKLAIM_context_sign (struct GNUNET_ZKLAIM_Context *ctx, | ||
32 | const struct GNUNET_CRYPTO_EcdsaPrivateKey *key); | ||
33 | |||
34 | |||
35 | void | ||
36 | ZKLAIM_context_attributes_iterate (const struct GNUNET_ZKLAIM_Context *ctx, | ||
37 | GNUNET_ZKLAIM_PayloadIterator iter, | ||
38 | void *iter_cls); | ||
39 | |||
40 | |||
41 | void | ||
42 | ZKLAIM_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 | ||