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(use_multiparty=True)
secret_key_1 = engine.create_secret_key()
public_key_a = engine.create_public_key_a()
public_key_b1 = engine.create_public_key_b(secret_key1, public_key_a)
level = public_key_b1.level