deserialize

Engine.deserialize_bootstrap_key(data)
직렬화된 부트스트랩 키로 부트스트랩 키를 생성합니다.
  • 인풋:
    • data: bytes or bytearray
  • 아웃풋:
    • BootstrapKey

Warning

  • 행렬 엔진은 이 연산을 아직 지원하지 않습니다.
from desilofhe import Engine

engine = Engine(bootstrap=True)
secret_key = engine.create_secret_key()
bootstrap_key = engine.create_bootstrap_key(secret_key)
serialized_bootstrap_key = engine.serialize_bootstrap_key(bootstrap_key)

# bytearray
bootstrap_key = engine.deserialize_bootstrap_key(serialized_bootstrap_key)

# bytes
bootstrap_key = engine.deserialize_bootstrap_key(
    bytes(serialized_bootstrap_key)
)