read

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

Examples

Using an absolute path

from desilofhe import Engine

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

Using a relative path

from desilofhe import Engine

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