surjectionproof: introduce SECP256K1_SURJECTIONPROOF_MAX_USED_INPUTS constant and set it to 16

This commit is contained in:
Andrew Poelstra authored and Tim Ruffing committed 2020-07-24 14:59:36 +02:00
1 parent b8a3ff5f3b
commit 56f69d979f
4 files changed
+19 -12

No files matched your search

+1 -1
View File
@@ -77,7 +77,7 @@ SECP256K1_INLINE static int secp256k1_surjection_compute_public_keys(secp256k1_g
*ring_input_index = j;
}
j++;
if (j > n_pubkeys) {
if (j > n_pubkeys || j > SECP256K1_SURJECTIONPROOF_MAX_USED_INPUTS) {
return 0;
}
}