deserialize

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

예시

from desilofhe import Engine

engine = Engine(for_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)
)