mirror of
https://github.com/status-im/c-kzg-4844.git
synced 2025-01-10 02:05:37 +00:00
03b90ef63f
* Start to use bytes48 type * Update java bindings * Update variable names * Update csharp bindings * Update node.js bindings * Update python bindings * Fix mistake in python bindings * Add new functions * Fix nit in java bindings * Update variable names in java bindings * Compare to point at infinity * Update bytes_to_bls_field doc * Add todo * Do key validation * Remove bytes_to_g1 * Fix bug & add remark * Fix memcmp mistake * Fix nit in nodejs bindings * Fix another nit * Update nodejs parameter names * Remove to_proof() and to_commitment() * Fix bug
23 lines
853 B
C
23 lines
853 B
C
#include <inttypes.h>
|
|
#include <stdio.h>
|
|
#include <stdlib.h>
|
|
#include "c_kzg_4844.h"
|
|
|
|
#ifdef _WIN32
|
|
#define DLLEXPORT __declspec(dllexport)
|
|
#else
|
|
#define DLLEXPORT
|
|
#endif
|
|
|
|
DLLEXPORT KZGSettings* load_trusted_setup_wrap(const char* file);
|
|
|
|
DLLEXPORT void free_trusted_setup_wrap(KZGSettings *s);
|
|
|
|
DLLEXPORT C_KZG_RET blob_to_kzg_commitment(KZGCommitment *out, const Blob *blob, const KZGSettings *s);
|
|
|
|
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);
|
|
|
|
DLLEXPORT C_KZG_RET compute_aggregate_kzg_proof(KZGProof *out, const Blob blobs[], size_t n, const KZGSettings *s);
|
|
|
|
DLLEXPORT int verify_kzg_proof_wrap(const Bytes48 *commitment_bytes, const Bytes32 *z_bytes, const Bytes32 *y_bytes, const Bytes48 *proof_bytes, KZGSettings *s);
|