2022-11-03 13:08:17 +00:00
|
|
|
#include <inttypes.h>
|
|
|
|
#include <stdio.h>
|
|
|
|
#include <stdlib.h>
|
|
|
|
#include "c_kzg_4844.h"
|
|
|
|
|
2022-11-07 16:50:32 +00:00
|
|
|
#ifdef _WIN32
|
2022-11-03 13:08:17 +00:00
|
|
|
#define DLLEXPORT __declspec(dllexport)
|
|
|
|
#else
|
2022-11-21 17:33:59 +00:00
|
|
|
#define DLLEXPORT
|
2022-11-03 13:08:17 +00:00
|
|
|
#endif
|
|
|
|
|
|
|
|
DLLEXPORT KZGSettings* load_trusted_setup_wrap(const char* file);
|
|
|
|
|
|
|
|
DLLEXPORT void free_trusted_setup_wrap(KZGSettings *s);
|
|
|
|
|
2023-01-16 20:05:23 +00:00
|
|
|
DLLEXPORT C_KZG_RET blob_to_kzg_commitment(KZGCommitment *out, const Blob *blob, const KZGSettings *s);
|
2022-11-03 13:08:17 +00:00
|
|
|
|
2023-01-26 14:53:30 +00:00
|
|
|
DLLEXPORT int verify_aggregate_kzg_proof_wrap(const Blob blobs[], const Bytes48 *commitments_bytes, size_t n, const Bytes48 *aggregated_proof_bytes, const KZGSettings *s);
|
2022-11-03 13:08:17 +00:00
|
|
|
|
2023-01-16 20:05:23 +00:00
|
|
|
DLLEXPORT C_KZG_RET compute_aggregate_kzg_proof(KZGProof *out, const Blob blobs[], size_t n, const KZGSettings *s);
|
2022-11-03 13:08:17 +00:00
|
|
|
|
2023-01-26 14:53:30 +00:00
|
|
|
DLLEXPORT int verify_kzg_proof_wrap(const Bytes48 *commitment_bytes, const Bytes32 *z_bytes, const Bytes32 *y_bytes, const Bytes48 *proof_bytes, KZGSettings *s);
|