mirror of
https://github.com/status-im/c-kzg-4844.git
synced 2025-01-11 10:44:23 +00:00
Add blob_to_kzg_commitment to the 4844 interface
This commit is contained in:
parent
48903d567f
commit
96e3fc9bd8
@ -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) {
|
||||
|
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user