Fix bug in compute_powers

This commit is contained in:
Ramana Kumar 2022-11-02 15:51:06 +00:00
parent d3465ec8d4
commit 3b0d68036b
No known key found for this signature in database
GPG Key ID: ED471C788B900433
1 changed files with 1 additions and 1 deletions

View File

@ -825,7 +825,7 @@ void free_trusted_setup(KZGSettings *s) {
static void compute_powers(fr_t out[], uint64_t n) {
uint64_t i = 0;
out[++i] = fr_one;
out[i++] = fr_one;
while (++i < n) fr_mul(&out[i], &out[i-1], &out[1]);
}