mirror of
https://github.com/selfxyz/self.git
synced 2026-04-05 03:00:53 -04:00
32 lines
770 B
C
32 lines
770 B
C
#ifndef PROVER_HPP
|
|
#define PROVER_HPP
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
//Error codes returned by the functions.
|
|
#define PROVER_OK 0x0
|
|
#define PROVER_ERROR 0x1
|
|
#define PROVER_ERROR_SHORT_BUFFER 0x2
|
|
|
|
|
|
/**
|
|
* @return error code:
|
|
* PRPOVER_OK - in case of success.
|
|
* PPROVER_ERROR - in case of an error.
|
|
*/
|
|
|
|
int
|
|
groth16_prover(const void *zkey_buffer, unsigned long zkey_size,
|
|
const void *wtns_buffer, unsigned long wtns_size,
|
|
char *proof_buffer, unsigned long *proof_size,
|
|
char *public_buffer, unsigned long *public_size,
|
|
char *error_msg, unsigned long error_msg_maxsize);
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
|
|
|
|
#endif // PROVER_HPP
|