EncryptedData#

class EncryptedData#

A class to hold encrypted data. Each data object may have multiple batches.

add_batch(self: pyhelayers.EncryptedData, batch: pyhelayers.EncryptedBatch) None#

Adds a batch. :param batch: The batch to add.

add_encrypted_data(self: pyhelayers.EncryptedData, other: pyhelayers.EncryptedData) None#

Adds the batches of the other EncryptedData to this object.

Parameters:

other – The other EncryptedData object.

get_batch(self: pyhelayers.EncryptedData, i: int) pyhelayers.EncryptedBatch#

Returns a specific batch.

Parameters:

i – The index of batch to get.

get_num_batches(self: pyhelayers.EncryptedData) int#

Returns the number of batches.