Fix bug in compute_powers
This commit is contained in:
parent
d3465ec8d4
commit
3b0d68036b
|
@ -825,7 +825,7 @@ void free_trusted_setup(KZGSettings *s) {
|
||||||
|
|
||||||
static void compute_powers(fr_t out[], uint64_t n) {
|
static void compute_powers(fr_t out[], uint64_t n) {
|
||||||
uint64_t i = 0;
|
uint64_t i = 0;
|
||||||
out[++i] = fr_one;
|
out[i++] = fr_one;
|
||||||
while (++i < n) fr_mul(&out[i], &out[i-1], &out[1]);
|
while (++i < n) fr_mul(&out[i], &out[i-1], &out[1]);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue