Fix G1 test data generator
This commit is contained in:
parent
80317b655e
commit
5f789ab86d
|
@ -26,7 +26,7 @@ void make_data(blst_p1 *out, uint64_t n) {
|
|||
assert(n > 0);
|
||||
blst_p1_from_affine(out + 0, &BLS12_381_G1);
|
||||
for (int i = 1; i < n; i++) {
|
||||
blst_p1_add_affine(out + i, out + i - 1, &BLS12_381_G1);
|
||||
blst_p1_add_or_double_affine(out + i, out + i - 1, &BLS12_381_G1);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue