Revert changes that were only to make SWIG work
This commit is contained in:
parent
b169d4ab6e
commit
d478234491
|
@ -20,11 +20,6 @@
|
|||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
|
||||
int test_function() {
|
||||
return 5;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Wrapped `malloc()` that reports failures to allocate.
|
||||
*
|
||||
|
@ -909,7 +904,7 @@ static void g1_lincomb(g1_t *out, const g1_t *p, const fr_t *coeffs, const uint6
|
|||
}
|
||||
}
|
||||
|
||||
void blob_to_kzg_commitment(KZGCommitment *out, const BLSFieldElement blob[FIELD_ELEMENTS_PER_BLOB], const KZGSettings *s) {
|
||||
void blob_to_kzg_commitment(KZGCommitment *out, const Polynomial blob, const KZGSettings *s) {
|
||||
g1_lincomb(out, s->g1_values, blob, FIELD_ELEMENTS_PER_BLOB);
|
||||
}
|
||||
|
||||
|
|
|
@ -90,8 +90,6 @@ typedef struct {
|
|||
g2_t *g2_values; /**< G2 group elements from the trusted setup; both arrays have FIELD_ELEMENTS_PER_BLOB elements */
|
||||
} KZGSettings;
|
||||
|
||||
int test_function();
|
||||
|
||||
/**
|
||||
* Interface functions
|
||||
*/
|
||||
|
@ -115,7 +113,7 @@ C_KZG_RET verify_aggregate_kzg_proof(bool *out,
|
|||
const KZGSettings *s);
|
||||
|
||||
void blob_to_kzg_commitment(KZGCommitment *out,
|
||||
const BLSFieldElement blob[FIELD_ELEMENTS_PER_BLOB],
|
||||
const Polynomial blob,
|
||||
const KZGSettings *s);
|
||||
|
||||
C_KZG_RET verify_kzg_proof(bool *out,
|
||||
|
|
Loading…
Reference in New Issue