write
Engine.write_rotation_key(rotation_key, file_path)- Saves the rotation key to the specified path.
- Input:
RotationKey- file_path:
str | pathlib.Path- Can be an absolute or relative path.
- Output:
None
Warning
- The matrix form does not support this operation.
Examples
Using an absolute path
from desilofhe import Engine
engine = Engine()
secret_key = engine.create_secret_key()
rotation_key = engine.create_rotation_key(secret_key)
engine.write_rotation_key(rotation_key, "/opt/desilo/rotation_key")
Using a relative path