# OpenFHE-Python: BFV Threshold

**URL:** <https://openfhe.discourse.group/t/openfhe-python-bfv-threshold/1997>\
**Category:** Library Questions\
**Created:** [April 15, 2025, 11:09am UTC](https://openfhe.discourse.group/t/openfhe-python-bfv-threshold/1997 "2025-04-15T11:09:47Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![andreea.alexandru](https://yyz1.discourse-cdn.com/flex031/user_avatar/openfhe.discourse.group/andreea.alexandru/32/378_2.png) [@andreea.alexandru](https://openfhe.discourse.group/u/andreea.alexandru)\
**Post date:** [April 15, 2025, 9:07pm UTC](https://openfhe.discourse.group/t/openfhe-python-bfv-threshold/1997/2 "2025-04-15T21:07:51Z")

</div>

SetThresholdNumOfParties expects the total number of parties and is used to generate the parameters. For a t-out-of-n setting where t \< n, please see the description of [threshold decryption with aborts](https://github.com/openfheorg/openfhe-development/blob/main/docs/static_docs/Threshold_FHE.md#threshold-decryption-with-aborts) and a small example [here](https://github.com/openfheorg/openfhe-development/blob/main/src/pke/unittest/UnitTestMultiparty.cpp#L790) to understand the kind of capability currently implemented in OpenFHE.

---

_[View the full topic](https://openfhe.discourse.group/t/openfhe-python-bfv-threshold/1997)._
