deserialize
Engine.deserialize_small_bootstrap_key(data)
- 직렬화된 간이 부트스트랩 키로 간이 부트스트랩 키를 생성합니다.
- 인풋:
- data: bytes or bytearray
- 아웃풋:
- SmallBootstrapKey
예시
from desilofhe import Engine
engine = Engine(for_bootstrap=True)
secret_key = engine.create_secret_key()
small_bootstrap_key = engine.create_small_bootstrap_key(secret_key)
serialized_small_bootstrap_key = engine.serialize_small_bootstrap_key(
small_bootstrap_key
)
# bytearray
small_bootstrap_key = engine.deserialize_small_bootstrap_key(
serialized_small_bootstrap_key
)
# bytes
small_bootstrap_key = engine.deserialize_small_bootstrap_key(
bytes(serialized_small_bootstrap_key)
)