mirror of
https://github.com/status-im/c-kzg-4844.git
synced 2025-01-11 02:35:53 +00:00
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) {
|
||||
uint64_t i = 0;
|
||||
out[++i] = fr_one;
|
||||
out[i++] = fr_one;
|
||||
while (++i < n) fr_mul(&out[i], &out[i-1], &out[1]);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user