2021-06-17 10:37:07 +00:00
|
|
|
#ifndef __ZKP_CONTEXT_H__
|
|
|
|
#define __ZKP_CONTEXT_H__
|
|
|
|
|
|
|
|
#include <stdint.h>
|
|
|
|
|
|
|
|
#include "vendor/secp256k1-zkp/include/secp256k1_preallocated.h"
|
|
|
|
|
2021-11-03 21:38:39 +00:00
|
|
|
int secp256k1_context_writable_randomize(secp256k1_context *context);
|
2021-11-26 15:09:46 +00:00
|
|
|
bool zkp_context_is_initialized(void);
|
2021-11-03 21:25:16 +00:00
|
|
|
int zkp_context_init(void);
|
2021-06-17 10:37:07 +00:00
|
|
|
void zkp_context_destroy(void);
|
|
|
|
const secp256k1_context *zkp_context_get_read_only(void);
|
|
|
|
secp256k1_context *zkp_context_acquire_writable(void);
|
|
|
|
void zkp_context_release_writable(void);
|
|
|
|
|
|
|
|
#endif
|