serialize

Engine.serialize_small_bootstrap_key(small_bootstrap_key)
Serializes a small bootstrap key.
  • Input:
    • SmallBootstrapKey
  • Output:
    • bytearray

Warning

  • The matrix form does not yet support this operation.
from desilofhe import Engine

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