read

Engine.read_public_key_b(filename)
Creates a public key b by reading data from a file.
  • Input:
    • filename: str
      • Can be an absolute or relative path.
  • Output:
    • PublicKeyB

Examples

Using an absolute path

from desilofhe import Engine

engine = Engine(use_multiparty=True)
public_key_b = engine.read_public_key_b("/opt/desilo/public_key_b")

Using a relative path

from desilofhe import Engine

engine = Engine(use_multiparty=True)
public_key_b = engine.read_public_key_b("public_key_b")