diff --git a/src/fk20_proofs.c b/src/fk20_proofs.c index b14d822..c373caa 100644 --- a/src/fk20_proofs.c +++ b/src/fk20_proofs.c @@ -485,7 +485,7 @@ void fk_single(void) { FFTSettings fs; KZGSettings ks; FK20SingleSettings fk; - uint64_t secrets_len = n_len + 1; + uint64_t secrets_len = n_len; g1_t s1[secrets_len]; g2_t s2[secrets_len]; poly p; @@ -558,7 +558,7 @@ void fk_single_strided(void) { FFTSettings fs; KZGSettings ks; FK20SingleSettings fk; - uint64_t secrets_len = n_len + 1; + uint64_t secrets_len = n_len; g1_t s1[secrets_len]; g2_t s2[secrets_len]; poly p; @@ -606,7 +606,7 @@ void fk_multi_settings(void) { KZGSettings ks; FK20MultiSettings fk; uint64_t n = 5; - uint64_t secrets_len = 33; + uint64_t secrets_len = 32; g1_t s1[secrets_len]; g2_t s2[secrets_len]; diff --git a/src/kzg_proofs.c b/src/kzg_proofs.c index aa5a087..eba730a 100644 --- a/src/kzg_proofs.c +++ b/src/kzg_proofs.c @@ -248,7 +248,7 @@ void proof_single(void) { // Our polynomial: degree 15, 16 coefficients uint64_t coeffs[] = {1, 2, 3, 4, 7, 7, 7, 7, 13, 13, 13, 13, 13, 13, 13, 13}; int poly_len = sizeof coeffs / sizeof coeffs[0]; - uint64_t secrets_len = poly_len + 1; + uint64_t secrets_len = poly_len; FFTSettings fs; KZGSettings ks; @@ -307,7 +307,7 @@ void proof_multi(void) { int coset_scale = 3, coset_len = (1 << coset_scale); fr_t y[coset_len]; - uint64_t secrets_len = poly_len > coset_len ? poly_len + 1 : coset_len + 1; + uint64_t secrets_len = poly_len > coset_len ? poly_len : coset_len; g1_t s1[secrets_len]; g2_t s2[secrets_len];