serialize Engine.serialize_bootstrap_key(bootstrap_key) Serializes a bootstrap key. Input: BootstrapKey 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() bootstrap_key = engine.create_bootstrap_key(secret_key) serialized_bootstrap_key = engine.serialize_bootstrap_key(bootstrap_key)