DecryptProtocol#

class DecryptProtocol#

Protocol for multi-party decryption.

get_output_double_tensor(self: pyhelayers.DecryptProtocol) numpy.ndarray[numpy.float64]#

Get the decrypted output. Should be used only if the input was set using set_input(CTileTensor).

Returns:

The decrypted output.

Return type:

DoubleTensor.

get_output_vector_double(self: pyhelayers.DecryptProtocol) numpy.ndarray[numpy.float64]#

Get the decrypted output. Should be used only if the input was set using set_input(CTile).

Returns:

The decrypted output.

Return type:

numpy.array.

get_output_vector_double_tensor(self: pyhelayers.DecryptProtocol) list#

Get the decrypted output. Should be used only if the input was set using set_input(EncryptedData).

Returns:

The decrypted output.

Return type:

Vector of pointers of const DoubleTensor objects.

get_plaintext_aggregator_id(self: pyhelayers.DecryptProtocol) int#
Returns:

Returns the ID of the plaintext-aggregator for the next run of the protocol (see MultiPartyRole::MP_PLAINTEXT_AGGREGATOR).

Return type:

int.

set_input(*args, **kwargs)#

Overloaded function.

  1. set_input(self: pyhelayers.DecryptProtocol, input: helayers::EncryptedData) -> None

    Set the encrypted input to decrypt.

    param input:

    The encrypted input to decrypt.

    type input:

    EncryptedData.

  2. set_input(self: pyhelayers.DecryptProtocol, input: helayers::CTileTensor) -> None

    Set the encrypted input to decrypt.

    param input:

    The encrypted input to decrypt.

    type input:

    CTileTensor.

  3. set_input(self: pyhelayers.DecryptProtocol, input: pyhelayers.CTile) -> None

    Set the encrypted input to decrypt.

    param input:

    The encrypted input to decrypt.

    type input:

    CTile.

set_plaintext_aggregator_id(self: pyhelayers.DecryptProtocol, id: int) None#

Sets the ID of the plaintext-aggregator for the next run of the protocol (see MultiPartyRole::MP_PLAINTEXT_AGGREGATOR).

Parameters:

input (int.) – The ID.