PTile#

class PTile#

A class representing an encoded (unencrypted) plaintext. It’s called a PTile because from a high-level point of view we’ll usually use several of these combined for holding a more complicated object such as a matrix.

get_current_device(self: pyhelayers.PTile) pyhelayers.DeviceType#

Returns the current device of this PTile.

Return type:

DeviceType

is_all_zeroes(self: pyhelayers.PTile) bool#

Returns true if this PTile encodes all zeroes plaintext, and false otherwise.

to_device(self: pyhelayers.PTile, device: pyhelayers.DeviceType) None#

Move this PTile to another device.

Parameters:

device – The device type to move to.