36 lines
872 B
C++
36 lines
872 B
C++
/**
|
|
* @file wraplibsnark.hpp
|
|
* @author Jacob Eberhardt <jacob.eberhardt@tu-berlin.de
|
|
* @author Dennis Kuhnert <dennis.kuhnert@campus.tu-berlin.de>
|
|
* @date 2017
|
|
*/
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
#include <stdbool.h>
|
|
#include <stdint.h>
|
|
|
|
bool _setup(const uint8_t* A,
|
|
const uint8_t* B,
|
|
const uint8_t* C,
|
|
int constraints,
|
|
int variables,
|
|
int inputs,
|
|
const char* pk_path,
|
|
const char* vk_path
|
|
);
|
|
|
|
// entrypoint, wraps the whole process, probably should be removed later
|
|
bool _run_libsnark(const uint8_t* A,
|
|
const uint8_t* B,
|
|
const uint8_t* C,
|
|
const uint8_t* witness,
|
|
int constraints,
|
|
int variables,
|
|
int inputs);
|
|
|
|
#ifdef __cplusplus
|
|
} // extern "C"
|
|
#endif
|