Revert changes that were only to make SWIG work

This commit is contained in:
dancoffman 2022-11-02 13:30:19 -07:00
parent b169d4ab6e
commit d478234491
No known key found for this signature in database
GPG Key ID: 47B1F53E36A9B3CC
2 changed files with 2 additions and 9 deletions

View File

@ -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);
}

View File

@ -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,