read

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

Examples

Using an absolute path

from desilofhe import Engine

engine = Engine(use_multiparty=True)
public_key_a = engine.read_public_key_a("/opt/desilo/public_key_a")

Using a relative path

from desilofhe import Engine

engine = Engine(use_multiparty=True)
public_key_a = engine.read_public_key_a("public_key_a")