Skip to content

Commit

Permalink
Fixup: test CI
Browse files Browse the repository at this point in the history
  • Loading branch information
sanket1729 committed Jun 6, 2023
1 parent 125dfc1 commit ceae9dc
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 14 deletions.
20 changes: 10 additions & 10 deletions src/modules/bppp/bppp_rangeproof_impl.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,16 +8,16 @@
#define _SECP256K1_MODULE_BPP_RANGEPROOF_IMPL_


#include "group.h"
#include "scalar.h"
#include "secp256k1.h"
#include "ecmult_const.h"
#include "field.h"
#include "include/secp256k1_bppp.h"

#include "modules/bppp/bppp_util.h"
#include "modules/bppp/bppp_transcript_impl.h"
#include "modules/bppp/bppp_norm_product_impl.h"
#include "../../group.h"
#include "../../scalar.h"
#include "../../../include/secp256k1.h"
#include "../../ecmult_const.h"
#include "../../field.h"
#include "../../../include/secp256k1_bppp.h"

#include "../bppp/bppp_util.h"
#include "../bppp/bppp_transcript_impl.h"
#include "../bppp/bppp_norm_product_impl.h"

struct secp256k1_bppp_rangeproof_prover_context {

Expand Down
10 changes: 6 additions & 4 deletions src/modules/bppp/tests_impl.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@
#include <stdint.h>

#include "../../../include/secp256k1_bppp.h"
#include "bppp_norm_product_impl.h"
#include "bppp_util.h"
#include "bppp_transcript_impl.h"
#include "../bppp/bppp_norm_product_impl.h"
#include "../bppp/bppp_util.h"
#include "../bppp/bppp_transcript_impl.h"
#include "test_vectors/verify.h"
#include "test_vectors/prove.h"

Expand Down Expand Up @@ -690,7 +690,7 @@ void rangeproof_test(size_t digit_base, size_t num_bits, uint64_t value, uint64_
const unsigned char extra_commit[] = "Shock of teal blue beneath clouds gathering, and the light of empty black on the waves at the horizon";
const size_t extra_commit_len = sizeof(extra_commit);
secp256k1_sha256 transcript;
const secp256k1_bppp_generators *gs = secp256k1_bppp_generators_create(secp_ctx, n + 8);
secp256k1_bppp_generators *gs = secp256k1_bppp_generators_create(secp_ctx, n + 8);
secp256k1_scratch *scratch = secp256k1_scratch_space_create(secp_ctx, 1000*1000); /* shouldn't need much */
unsigned char proof[1000];
plen = 1000;
Expand All @@ -710,6 +710,8 @@ void rangeproof_test(size_t digit_base, size_t num_bits, uint64_t value, uint64_
proof[plen - 1] ^= 1;
res = secp256k1_bppp_rangeproof_verify(secp_ctx, scratch, gs, &asset_genp, proof, plen, num_bits, digit_base, min_value, &commit, extra_commit, extra_commit_len);
CHECK(res == 0);
secp256k1_bppp_generators_destroy(secp_ctx, gs);
secp256k1_scratch_destroy(&secp_ctx->error_callback, scratch);
}

void run_bppp_tests(void) {
Expand Down

0 comments on commit ceae9dc

Please sign in to comment.