surjectionproof: introduce SECP256K1_SURJECTIONPROOF_MAX_USED_INPUTS constant and set it to 16

This commit is contained in:
Andrew Poelstra
2019-04-30 23:04:08 +00:00
committed by Tim Ruffing
parent b8a3ff5f3b
commit 56f69d979f
4 changed files with 19 additions and 12 deletions

View File

@@ -671,7 +671,7 @@ void run_surjection_tests(void) {
test_input_selection_distribution();
test_gen_verify(10, 3);
test_gen_verify(SECP256K1_SURJECTIONPROOF_MAX_N_INPUTS, SECP256K1_SURJECTIONPROOF_MAX_N_INPUTS);
test_gen_verify(SECP256K1_SURJECTIONPROOF_MAX_N_INPUTS, SECP256K1_SURJECTIONPROOF_MAX_USED_INPUTS);
test_no_used_inputs_verify();
test_bad_serialize();
test_bad_parse();