read

Engine.read_public_key(file_path)
Creates a public key by reading data from a file.
  • Input:
    • file_path: str or pathlib.Path
      • Can be an absolute or relative path.
  • Output:
    • PublicKey

Examples

Using an absolute path

from desilofhe import Engine

engine = Engine()
public_key = engine.read_public_key("/opt/desilo/public_key")

Using a relative path

from desilofhe import Engine

engine = Engine()
public_key = engine.read_public_key("public_key")