level

PublicKeyB.level
Shows the maximum level of a plaintext that the public key b can encrypt.
  • Output
    • level, int
from desilofhe import Engine

engine = Engine(multiparty=True)
secret_key = engine.create_secret_key()
public_key_a = engine.create_public_key_a()
public_key_b = engine.create_public_key_b(secret_key, public_key_a)
level = public_key_b.level