read

Engine.read_matrix_multiplication_key(file_path)
Creates a matrix multiplication key by reading data from a file.
  • Input:
    • file_path: str or pathlib.Path
      • Can be an absolute or relative path.
  • Output:
    • MatrixMultiplicationKey

Warning

  • The vector form does not support this operation.

Examples

Using an absolute path

from desilofhe import Engine

engine = Engine(form="matrix")
matrix_multiplication_key = engine.read_matrix_multiplication_key(
    "/opt/desilo/matrix_multiplication_key"
)

Using a relative path

from desilofhe import Engine

engine = Engine(form="matrix")
matrix_multiplication_key = engine.read_matrix_multiplication_key(
    "matrix_multiplication_key"
)