MultiPartyConfig#

class MultiPartyConfig#

A configuration of the Multi-Party setup via various parameters.

property aggregator_id#

The ID of the aggregator (see MultiPartyRole::MP_AGGREGATOR).

get_key_owners_ids(self: pyhelayers.MultiPartyConfig) numpy.ndarray[numpy.int32]#

Returns the IDS of key-owners (see MultiPartyRole::MP_KEY_OWNER)

property initiator_id#

The IDs of the key-owners (see MultiPartyRole::MP_KEY_OWNER).

is_aggregator(self: pyhelayers.MultiPartyConfig) bool#

Whether this participant is the aggregator (see MultiPartyRole::MP_AGGREGATOR).

Return type:

boolean.

is_id_key_owner(self: pyhelayers.MultiPartyConfig, id: int) bool#

Whether the given ID is an ID of a key-owner (seeMultiPartyRole::MP_KEY_OWNER).

Parameters:

id (int.) – The ID to check.

Return type:

boolean.

is_initiator(self: pyhelayers.MultiPartyConfig) bool#

Whether this participant is the initiator (see MultiPartyRole::MP_INITIATOR).

Return type:

boolean.

is_key_owner(self: pyhelayers.MultiPartyConfig) bool#

Whether this participant is a key-owner (see MultiPartyRole::MP_KEY_OWNER).

Return type:

boolean.

num_key_owners(self: pyhelayers.MultiPartyConfig) int#

Returns the number of key-owners (see MultiPartyRole::MP_KEY_OWNER).

Return type:

int.

property participant_id#

Id of this participant.

set_key_owners_ids(self: pyhelayers.MultiPartyConfig, arg0: numpy.ndarray[numpy.int32]) None#

Sets the IDS of key-owners (see MultiPartyRole::MP_KEY_OWNER)

Parameters:

vals – list of IDs