Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TypeError: cannot pickle 'seal.Ciphertext' object #106

Open
ZJG0 opened this issue Apr 18, 2023 · 4 comments
Open

TypeError: cannot pickle 'seal.Ciphertext' object #106

ZJG0 opened this issue Apr 18, 2023 · 4 comments
Labels
question Further information is requested

Comments

@ZJG0
Copy link

ZJG0 commented Apr 18, 2023

Descripe
I wanted to transfer the ciphertext, but the seal.Ciphertext was not serialized and could not transfer. What do I need to do to transmit ciphertext?

@ZJG0 ZJG0 added the question Further information is requested label Apr 18, 2023
@Huelse
Copy link
Owner

Huelse commented Apr 18, 2023

use to_string(), refer to serialization.

@ZJG0
Copy link
Author

ZJG0 commented Apr 19, 2023

I have tried the to_string() according to the serialization. There is a new problem that recovering the ciphertext from string requires the context. Thus, I have to serialize the context and transfer it to another PC, but how can I recover the context from string.

@Huelse
Copy link
Owner

Huelse commented Apr 19, 2023

Have you carefully read the 7_serialization.py? the EncryptionParameters need to be the same.

@ZJG0
Copy link
Author

ZJG0 commented Apr 19, 2023

Sure, the reason I'm going to transfer the context to the other PC is because I'm going to use the same context for encryption and decryption, which now seems to have to be done with pre-agreed parameters.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants