-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathissuer.h
More file actions
29 lines (24 loc) · 840 Bytes
/
issuer.h
File metadata and controls
29 lines (24 loc) · 840 Bytes
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
// SPDX-License-Identifier: MIT
#ifndef __ISSUER_H__
#define __ISSUER_H__
#include "cryptoutils.h"
#include "defines.h"
#include <stdint.h>
/**
* @brief Creates a new DAA issuer key pair.
* @param ctx DAA context.
* @param out Output key structure.
* @return 0 on success, non-zero on failure.
*/
int create_daa_issuer_key(DAA_CONTEXT* ctx, issuer_key* out);
/**
* @brief Issues a DAA credential to a public key.
* @param ctx DAA context.
* @param daa_issuer_key Issuer key used for credential issuance.
* @param daa_public_key Public key of the attester.
* @param daa_credential Output credential.
* @return 0 on success, non-zero on failure.
*/
int issue_daa_credentials(DAA_CONTEXT ctx, issuer_key daa_issuer_key, EC_POINT daa_public_key,
DAA_CREDENTIAL* daa_credential);
#endif // __ISSUER_H__