Add verify_kzg_proof back to interface

This commit is contained in:
Ramana Kumar 2022-10-31 13:42:06 +00:00
parent c37a1234e1
commit af895c8d2c
No known key found for this signature in database
GPG Key ID: ED471C788B900433
2 changed files with 9 additions and 2 deletions

View File

@ -921,8 +921,8 @@ void blob_to_kzg_commitment(KZGCommitment *out, const Polynomial blob, const KZG
* @param[in] ks The settings containing the secrets, previously initialised with #new_kzg_settings
* @retval C_CZK_OK All is well
*/
static C_KZG_RET verify_kzg_proof(bool *out, const g1_t *commitment, const fr_t *x, const fr_t *y,
const g1_t *proof, const KZGSettings *ks) {
C_KZG_RET verify_kzg_proof(bool *out, const g1_t *commitment, const fr_t *x, const fr_t *y,
const g1_t *proof, const KZGSettings *ks) {
g2_t x_g2, s_minus_x;
g1_t y_g1, commitment_minus_y;
g2_mul(&x_g2, &g2_generator, x);

View File

@ -111,4 +111,11 @@ void blob_to_kzg_commitment(KZGCommitment *out,
const Polynomial blob,
const KZGSettings *s);
C_KZG_RET verify_kzg_proof(bool *out,
const KZGCommitment *polynomial_kzg,
const BLSFieldElement *z,
const BLSFieldElement *y,
const KZGProof *kzg_proof,
const KZGSettings *s);
#endif // C_KZG_4844_H