Add blob_to_kzg_commitment to the 4844 interface

This commit is contained in:
Ramana Kumar 2022-09-27 13:51:08 +01:00
parent 48903d567f
commit 96e3fc9bd8
No known key found for this signature in database
GPG Key ID: ED471C788B900433
2 changed files with 5 additions and 0 deletions

View File

@ -75,6 +75,9 @@ void vector_lincomb(BLSFieldElement out[], const BLSFieldElement *vectors, const
void g1_lincomb(KZGCommitment *out, const KZGCommitment points[], const BLSFieldElement scalars[], uint64_t num_points) {
g1_linear_combination(out, points, scalars, num_points);
void blob_to_kzg_commitment(KZGCommitment *out, const BLSFieldElement blob[], const KZGSettings *s) {
g1_linear_combination(out, s->secret_g1_l, blob, s->length);
}
void bytes_to_bls_field(BLSFieldElement *out, const scalar_t *bytes) {

View File

@ -42,6 +42,8 @@ void vector_lincomb(BLSFieldElement out[], const BLSFieldElement *vectors, const
void g1_lincomb(KZGCommitment *out, const KZGCommitment points[], const BLSFieldElement scalars[], uint64_t num_points);
void blob_to_kzg_commitment(KZGCommitment *out, const BLSFieldElement blob[], const KZGSettings *s);
void bytes_to_bls_field(BLSFieldElement *out, const scalar_t *bytes);
C_KZG_RET evaluate_polynomial_in_evaluation_form(BLSFieldElement *out, const PolynomialEvalForm *polynomial, const BLSFieldElement *z, const KZGSettings *s);