serialize
Engine.serialize_plain_matrix(plain_matrix)
- 행렬 평문을 직렬화합니다.
import numpy as np
from desilofhe import Engine
engine = Engine(slot_count=64)
message = np.arange(64 * 64).reshape(64, 64)
plain_matrix = engine.encode_to_plain_matrix(message)
serialized_plain_matrix = engine.serialize_plain_matrix(plain_matrix)