1010#include <stdint.h>
1111
1212#include "../../../include/secp256k1_bppp.h"
13- #include "bppp_norm_product_impl.h"
14- #include "bppp_util.h"
15- #include "bppp_transcript_impl.h"
13+ #include "../bppp/ bppp_norm_product_impl.h"
14+ #include "../bppp/ bppp_util.h"
15+ #include "../bppp/ bppp_transcript_impl.h"
1616#include "test_vectors/verify.h"
1717#include "test_vectors/prove.h"
1818
@@ -694,7 +694,7 @@ void rangeproof_test(size_t digit_base, size_t num_bits, uint64_t value, uint64_
694694 const unsigned char extra_commit [] = "Shock of teal blue beneath clouds gathering, and the light of empty black on the waves at the horizon" ;
695695 const size_t extra_commit_len = sizeof (extra_commit );
696696 secp256k1_sha256 transcript ;
697- const secp256k1_bppp_generators * gs = secp256k1_bppp_generators_create (secp_ctx , n + 8 );
697+ secp256k1_bppp_generators * gs = secp256k1_bppp_generators_create (secp_ctx , n + 8 );
698698 secp256k1_scratch * scratch = secp256k1_scratch_space_create (secp_ctx , 1000 * 1000 ); /* shouldn't need much */
699699 unsigned char proof [1000 ];
700700 plen = 1000 ;
@@ -714,6 +714,8 @@ void rangeproof_test(size_t digit_base, size_t num_bits, uint64_t value, uint64_
714714 proof [plen - 1 ] ^= 1 ;
715715 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 );
716716 CHECK (res == 0 );
717+ secp256k1_bppp_generators_destroy (secp_ctx , gs );
718+ secp256k1_scratch_space_destroy (secp_ctx , scratch );
717719}
718720
719721void run_bppp_tests (void ) {
0 commit comments