How can I save the private key with the context when serializing it?
Further Information
Error when decrypting using deserialized context says :
ValueError: the current context of the tensor doesn't hold a secret_key, please provide one as argument
From this, it states the old version saves the secret key with the context by default, but the new version seems to drop the secret key by default now. So how can I save the private key with the context or how can I save and load the private in general?
Question
How can I save the private key with the context when serializing it?
Further Information
Error when decrypting using deserialized context says :
From this, it states the old version saves the secret key with the context by default, but the new version seems to drop the secret key by default now. So how can I save the private key with the context or how can I save and load the private in general?
Reproduce
This is how I create and serialize my context: