read

Engine.read_rotation_key(filename)
Creates a rotation key by reading data from a file.
  • Input:
    • filename: str
      • Can be an absolute or relative path.
  • Output:
    • RotationKey

Examples

Using an absolute path

from desilofhe import Engine

engine = Engine()
rotation_key = engine.read_rotation_key("/opt/desilo/rotation_key")

Using a relative path

from desilofhe import Engine

engine = Engine()
rotation_key = engine.read_rotation_key("rotation_key")