ecmult_gen_impl: eliminate scratch memory used when generating context

This commit is contained in:
Andrew Poelstra
2018-09-20 22:24:57 +00:00
parent 314a61d724
commit 7f7a2ed3a8
5 changed files with 31 additions and 16 deletions

View File

@@ -172,7 +172,7 @@ int main(int argc, char **argv) {
secp256k1_scalar_add(&data.seckeys[i], &data.seckeys[i - 1], &data.seckeys[i - 1]);
}
}
secp256k1_ge_set_all_gej_var(data.pubkeys, pubkeys_gej, POINTS, &data.ctx->error_callback);
secp256k1_ge_set_all_gej_var(data.pubkeys, pubkeys_gej, POINTS);
free(pubkeys_gej);
for (i = 1; i <= 8; ++i) {