Fix schnorrsig module after rebase on upstream e541a90e

This commit is contained in:
Jonas Nick 2019-06-21 08:54:50 +00:00
parent 44db4d801f
commit 6303e3b0ca
3 changed files with 3 additions and 3 deletions

View File

@ -122,7 +122,7 @@ int main(void) {
free(data.msgs); free(data.msgs);
free(data.sigs); free(data.sigs);
secp256k1_scratch_space_destroy(data.scratch); secp256k1_scratch_space_destroy(data.ctx, data.scratch);
secp256k1_context_destroy(data.ctx); secp256k1_context_destroy(data.ctx);
return 0; return 0;
} }

View File

@ -331,7 +331,7 @@ int secp256k1_schnorrsig_verify_batch(const secp256k1_context *ctx, secp256k1_sc
} }
secp256k1_scalar_negate(&s, &s); secp256k1_scalar_negate(&s, &s);
return secp256k1_ecmult_multi_var(&ctx->ecmult_ctx, scratch, &rj, &s, secp256k1_schnorrsig_verify_batch_ecmult_callback, (void *) &ecmult_context, 2 * n_sigs) return secp256k1_ecmult_multi_var(&ctx->error_callback, &ctx->ecmult_ctx, scratch, &rj, &s, secp256k1_schnorrsig_verify_batch_ecmult_callback, (void *) &ecmult_context, 2 * n_sigs)
&& secp256k1_gej_is_infinity(&rj); && secp256k1_gej_is_infinity(&rj);
} }

View File

@ -720,7 +720,7 @@ void run_schnorrsig_tests(void) {
test_schnorrsig_sign(); test_schnorrsig_sign();
test_schnorrsig_sign_verify(scratch); test_schnorrsig_sign_verify(scratch);
secp256k1_scratch_space_destroy(scratch); secp256k1_scratch_space_destroy(ctx, scratch);
} }
#endif #endif