Giter VIP home page Giter VIP logo

Comments (4)

Huelse avatar Huelse commented on September 24, 2024 1

The SEAL 3.4.5 does check the context while loading the ciphertext or other keys, which means it needs two parameters as input, so it's hard to work in python pickle. I'm trying to solve this.
https://github.com/microsoft/SEAL/blob/9fc376c19488be2bfd213780ee06789754f4b2c2/native/src/seal/ciphertext.h#L562
but you can save the ciphertext or keys like this:

old = Ciphertext()
old.save('path')
...
new = Ciphertext()
new.load(context, 'path')

from seal-python.

Huelse avatar Huelse commented on September 24, 2024 1

Yeah, that's exactly one of what I thought. I can write the context parameters and the ciphertext into one pickle, but my concern is the different parameters between the BFV and CKKS schemes and some cpp code details.
If no problem, don't forget to close this issue.

from seal-python.

carlee0 avatar carlee0 commented on September 24, 2024

Thank you for the prompt reply! :) It works!

I was thinking of performing the computation in another process that does not have access to the context or keys but only the encoder and the evaluator. Doesn't it beat the purpose to require the context when copying? What do you think?

from seal-python.

carlee0 avatar carlee0 commented on September 24, 2024

I played around with the new version and it seems that even with the same context, the keys generated will be different. Therefore it is not possible to recreate the keys and decrypt even with all information about the context. In fact a new context created with the same parameters can be passed on for loading Ciphertext in the next process. A new evaluator generated in the same way works as well. No need to pickle them either. Thank you! :)

from seal-python.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.