read

Engine.read_decrypted_share(file_path)
Creates a decrypted share by reading data from a file.
  • Input:
    • file_path: str or pathlib.Path
      • Can be an absolute or relative path.
  • Output:
    • DecryptedShare

Warning

  • The matrix form does not yet support this operation.

Examples

Using an absolute path

from desilofhe import Engine

engine = Engine(multiparty=True)
decrypted_share = engine.read_decrypted_share("/opt/desilo/decrypted_share")

Using a relative path

from desilofhe import Engine

engine = Engine(multiparty=True)
decrypted_share = engine.read_decrypted_share("decrypted_share")