serialize Engine.serialize_bootstrap_key(bootstrap_key) Serializes a bootstrap key. Input: BootstrapKey Output: bytearray Examples 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)