polynomial_count

Ciphertext.polynomial_count
Shows the dimensionality of the ciphertext. Typically, it is 2, but 3 is returned if multiplication is performed without relinearization.
  • Output
    • polynomial_count, int
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)
polynomial_count = ciphertext.polynomial_count