create_fixed_rotation_key

Engine.create_fixed_rotation_key(secret_key, delta, level)
Creates a fixed rotation key used for rotation by a specific delta value. Requires a secret key.
  • Input
    • SecretKey
    • delta: int. It is generated by modulo operation within the range [0~slot count).
    • level: optional
      • Creates the key with a reduced size to contain only the specified multiplication levels.
  • Output
    • FixedRotationKey
from desilofhe import Engine

engine = Engine()
secret_key = engine.create_secret_key()
fixed_rotation_key = engine.create_fixed_rotation_key(secret_key, delta=1)

level_3_fixed_rotation_key = engine.create_fixed_rotation_key(
    secret_key, delta=1, level=3
)