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
@@ -690,7 +690,7 @@ void rangeproof_test(size_t digit_base, size_t num_bits, uint64_t value, uint64_
690690 const unsigned char extra_commit [] = "Shock of teal blue beneath clouds gathering, and the light of empty black on the waves at the horizon" ;
691691 const size_t extra_commit_len = sizeof (extra_commit );
692692 secp256k1_sha256 transcript ;
693- const secp256k1_bppp_generators * gs = secp256k1_bppp_generators_create (secp_ctx , n + 8 );
693+ secp256k1_bppp_generators * gs = secp256k1_bppp_generators_create (secp_ctx , n + 8 );
694694 secp256k1_scratch * scratch = secp256k1_scratch_space_create (secp_ctx , 1000 * 1000 ); /* shouldn't need much */
695695 unsigned char proof [1000 ];
696696 plen = 1000 ;
@@ -710,6 +710,8 @@ void rangeproof_test(size_t digit_base, size_t num_bits, uint64_t value, uint64_
710710 proof [plen - 1 ] ^= 1 ;
711711 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 );
712712 CHECK (res == 0 );
713+ secp256k1_bppp_generators_destroy (secp_ctx , gs );
714+ secp256k1_scratch_destroy (& secp_ctx -> error_callback , scratch );
713715}
714716
715717void run_bppp_tests (void ) {
0 commit comments