HeConfigRequirement#

class HeConfigRequirement#

A class used to construct an HeContext with certain requirements (e.g. security_level, integerPartPrecision).

property automatic_bootstrapping#

Whether bootstrapping is applied automatically to prevent runtime errors resulting from executing a chain index consuming operation on a ciphertext with too small chain index. The logic for deciding the bootstrapping points is scheme and library specific. But, in general, the bootstrappings are delayed as much as possible. This flag can only be set to true if this HeContext supports bootstrapping.

property bootstrappable#

Whether CTiles created by the HeContext will be bootstrappable. Setting this flag to true will lead to the creation of a BootstrapEvaluator object upon the initialization of the HeContext. Note that this BootstrapEvaluator creation increases the runtime of the initialization.

property fractional_part_precision#

The required fractional part precision.

get_multi_party_config(self: pyhelayers.HeConfigRequirement) helayers::MultiPartyConfig#

Get the optional configuration related to Multi-Party HE setups.

Return type:

MultiPartyConfig.

Raises:

RuntimeError – if the HeConfigRequirement object does not have a MultiPartyConfig object.

static insecure(num_slots: int, multiplication_depth: int, fractional_part_precision: int = -1, integer_part_precision: int = -1) pyhelayers.HeConfigRequirement#

Returns an object with an insecure configuration.

Parameters:
  • num_slots – The required number of slots.

  • multiplication_depth – The required multiplication depth.

  • fractional_part_precision – The required fractional part precision.

  • integer_part_precision – The required integer part precision.

property integer_part_precision#

The required integer part precision.

property multiplication_depth#

The required multiplication depth.

property num_slots#

The required number of slots.

property public_functions#

This member specifies which functionalities will be supported by the public keys of the HeContext

property security_level#

The required security level.

set_multi_party_config(self: pyhelayers.HeConfigRequirement, mp_config: helayers::MultiPartyConfig) None#

Set optional configuration related to Multi-Party HE setups.

Parameters:

mp_config (MultiPartyConfig.) – The multi-party configuration object.