serialize

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

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
)