deserialize
Engine.deserialize_small_bootstrap_key(data)
- Creates a small bootstrap key from a serialized data.
- Input:
- data: bytes or bytearray
- Output:
- SmallBootstrapKey
Examples
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)
)