Skip to content

Commit

Permalink
Merge pull request bitcoin-core#19 from jonasnick/surjectionproof_ini…
Browse files Browse the repository at this point in the history
…t_p_give_up

Add comment to explain effect of max_n_iterations in surjectionproof_…
  • Loading branch information
jonasnick authored Oct 10, 2018
2 parents 2318f18 + 482ccee commit 809016c
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion include/secp256k1_surjectionproof.h
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,11 @@ SECP256K1_API size_t secp256k1_surjectionproof_serialized_size(
* n_input_tags: the number of entries in the fixed_input_tags array
* n_input_tags_to_use: the number of inputs to select randomly to put in the anonymity set
* fixed_output_tag: fixed output tag
* max_n_iterations: the maximum number of iterations to do before giving up
* max_n_iterations: the maximum number of iterations to do before giving up. Because the
* maximum number of inputs (SECP256K1_SURJECTIONPROOF_MAX_N_INPUTS) is
* limited to 256 the probability of giving up is smaller than
* (255/256)^(n_input_tags_to_use*max_n_iterations).
*
* random_seed32: a random seed to be used for input selection
* Out: proof: The proof whose bitvector will be initialized. In case of failure,
* the state of the proof is undefined.
Expand Down

0 comments on commit 809016c

Please sign in to comment.