10
10
#include <stdint.h>
11
11
12
12
#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"
16
16
#include "test_vectors/verify.h"
17
17
#include "test_vectors/prove.h"
18
18
@@ -690,7 +690,7 @@ void rangeproof_test(size_t digit_base, size_t num_bits, uint64_t value, uint64_
690
690
const unsigned char extra_commit [] = "Shock of teal blue beneath clouds gathering, and the light of empty black on the waves at the horizon" ;
691
691
const size_t extra_commit_len = sizeof (extra_commit );
692
692
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 );
694
694
secp256k1_scratch * scratch = secp256k1_scratch_space_create (secp_ctx , 1000 * 1000 ); /* shouldn't need much */
695
695
unsigned char proof [1000 ];
696
696
plen = 1000 ;
@@ -710,6 +710,8 @@ void rangeproof_test(size_t digit_base, size_t num_bits, uint64_t value, uint64_
710
710
proof [plen - 1 ] ^= 1 ;
711
711
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 );
712
712
CHECK (res == 0 );
713
+ secp256k1_bppp_generators_destroy (secp_ctx , gs );
714
+ secp256k1_scratch_space_destroy (secp_ctx , scratch );
713
715
}
714
716
715
717
void run_bppp_tests (void ) {
0 commit comments