Remove unused Polynomial typedef from interface

This commit is contained in:
Ramana Kumar 2022-11-04 23:29:33 +00:00
parent 1ff5eed9d0
commit 27f0d7fb25
No known key found for this signature in database
GPG Key ID: ED471C788B900433
2 changed files with 3 additions and 2 deletions

View File

@ -752,6 +752,8 @@ static bool pairings_verify(const g1_t *a1, const g2_t *a2, const g1_t *b1, cons
}
typedef BLSFieldElement Polynomial[FIELD_ELEMENTS_PER_BLOB];
void bytes_from_g1(uint8_t out[48], const g1_t *in) {
blst_p1_compress(out, in);
}

View File

@ -48,8 +48,7 @@ typedef blst_fr fr_t; /**< Internal Fr field element type */
typedef g1_t KZGCommitment;
typedef g1_t KZGProof;
typedef fr_t BLSFieldElement;
typedef uint8_t Blob[BYTES_PER_FIELD_ELEMENT * FIELD_ELEMENTS_PER_BLOB];
typedef BLSFieldElement Polynomial[FIELD_ELEMENTS_PER_BLOB];
typedef uint8_t Blob[BYTES_PER_BLOB];
/**
* The common return type for all routines in which something can go wrong.