When performing export_keys() in lightphe.init in case of exporting (publishing) the public key, it deletes private key in the process. This leaves the LightPHE object (who should have private key, because it generated it) unable to decrypt.
246: if public is True and keys.get("private_key") is not None:
247: del keys["private_key"]
When performing export_keys() in lightphe.init in case of exporting (publishing) the public key, it deletes private key in the process. This leaves the LightPHE object (who should have private key, because it generated it) unable to decrypt.
Current workaround:
Proposed fix: Don't delete the private_key from keys when performing export_keys(), just export the public_key