blob: 558485ed3dfd9da011f6b82092ab9b2cca9b8a0a (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
|
#ifndef GNUNET_ZKLAIM_FUNCTIONS_H
#define GNUNET_ZKLAIM_FUNCTIONS_H
#include "gnunet_zklaim_service.h"
/**
* Handle for an ego.
*/
struct GNUNET_ZKLAIM_Context
{
/**
* ZKlaim context.
*/
struct zklaim_ctx *ctx;
/**
* Current name associated with this context.
*/
char *name;
/**
* Attributes associated with context
*/
char *attrs;
};
int
ZKLAIM_context_sign (struct GNUNET_ZKLAIM_Context *ctx,
const struct GNUNET_CRYPTO_EcdsaPrivateKey *key);
void
ZKLAIM_context_attributes_iterate (const struct GNUNET_ZKLAIM_Context *ctx,
GNUNET_ZKLAIM_PayloadIterator iter,
void *iter_cls);
void
ZKLAIM_context_issue (struct GNUNET_ZKLAIM_Context *ctx,
const struct GNUNET_CRYPTO_EcdsaPrivateKey *key,
GNUNET_ZKLAIM_PayloadIterator iter,
void *iter_cls);
#endif
|