Skip to content

Commit

Permalink
Merge pull request #38 from jasonxh/master
Browse files Browse the repository at this point in the history
* fix the secp256k1_scratch_allocate_frame frames number for secp256k1_bulletproof_rangeproof_verify_multi
  • Loading branch information
garyyu authored Feb 27, 2019
2 parents 73617d0 + dbb5a4c commit 1760fb2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/modules/bulletproofs/main_impl.h
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ int secp256k1_bulletproof_rangeproof_verify_multi(const secp256k1_context* ctx,
}
ARG_CHECK(secp256k1_ecmult_context_is_built(&ctx->ecmult_ctx));

if (!secp256k1_scratch_allocate_frame(scratch, n_proofs * (sizeof(*value_genp) + sizeof(*commitp) + n_commits * sizeof(**commitp)), 1 + n_proofs)) {
if (!secp256k1_scratch_allocate_frame(scratch, n_proofs * (sizeof(*value_genp) + sizeof(*commitp) + n_commits * sizeof(**commitp)), 2 + n_proofs)) {
return 0;
}

Expand Down

0 comments on commit 1760fb2

Please sign in to comment.