create_rotation_key

Engine.create_rotation_key(secret_key, level)
Creates a rotation key used for general-purpose rotations. Requires a secret key. The rotation key is internally composed of fixed rotation keys of size \(2^n\). The value of n ranges from 0 to log_coeff_count - 1.
  • Input
    • SecretKey
    • level: optional
      • Creates the key with a reduced size to contain only the specified multiplication levels.
  • Output
    • RotationKey
from desilofhe import Engine

engine = Engine()
secret_key = engine.create_secret_key()
rotation_key = engine.create_rotation_key(secret_key)

level_3_rotation_key = engine.create_rotation_key(secret_key, level=3)