create_public_key

Engine.create_public_key(secret_key, level)
Creates a public key used for encryption. Requires a secret key.
  • Input
    • SecretKey
    • level: optional
      • Creates the key with a reduced size to contain only the specified multiplication levels.
  • Output
    • PublicKey
from desilofhe import Engine

engine = Engine()
secret_key = engine.create_secret_key()
public_key = engine.create_public_key(secret_key)

level_3_public_key = engine.create_public_key(secret_key, level=3)