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
@@ -694,7 +694,7 @@ void rangeproof_test(size_t digit_base, size_t num_bits, uint64_t value, uint64_
694
694
const unsigned char extra_commit [] = "Shock of teal blue beneath clouds gathering, and the light of empty black on the waves at the horizon" ;
695
695
const size_t extra_commit_len = sizeof (extra_commit );
696
696
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 );
698
698
secp256k1_scratch * scratch = secp256k1_scratch_space_create (secp_ctx , 1000 * 1000 ); /* shouldn't need much */
699
699
unsigned char proof [1000 ];
700
700
plen = 1000 ;
@@ -714,6 +714,8 @@ void rangeproof_test(size_t digit_base, size_t num_bits, uint64_t value, uint64_
714
714
proof [plen - 1 ] ^= 1 ;
715
715
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 );
716
716
CHECK (res == 0 );
717
+ secp256k1_bppp_generators_destroy (secp_ctx , gs );
718
+ secp256k1_scratch_space_destroy (secp_ctx , scratch );
717
719
}
718
720
719
721
void run_bppp_tests (void ) {
0 commit comments