From 27f0d7fb25094254c8df561dff69adbb666e6e50 Mon Sep 17 00:00:00 2001 From: Ramana Kumar Date: Fri, 4 Nov 2022 23:29:33 +0000 Subject: [PATCH] Remove unused Polynomial typedef from interface --- src/c_kzg_4844.c | 2 ++ src/c_kzg_4844.h | 3 +-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/c_kzg_4844.c b/src/c_kzg_4844.c index da96fef..89dcc42 100644 --- a/src/c_kzg_4844.c +++ b/src/c_kzg_4844.c @@ -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); } diff --git a/src/c_kzg_4844.h b/src/c_kzg_4844.h index 1e575c7..aa8960d 100644 --- a/src/c_kzg_4844.h +++ b/src/c_kzg_4844.h @@ -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.