serialized_nbytes
Ciphertext.serialized_nbytes
- Shows the size of a ciphertext when serialized.
from desilofhe import Engine
engine = Engine()
secret_key = engine.create_secret_key()
public_key = engine.create_public_key(secret_key)
message = [1, 2, 3]
cipehrtext = engine.encrypt(message, public_key)
serialized_nbytes = ciphertext.serialized_nbytes