Giter VIP home page Giter VIP logo

Comments (7)

Huelse avatar Huelse commented on September 24, 2024 1

@Mishra1992 disable it by passing -DSEAL_THROW_ON_TRANSPARENT_CIPHERTEXT=OFF when configuring SEAL through CMake, or evaluate in pure ciphertext.

from seal-python.

Huelse avatar Huelse commented on September 24, 2024

It depends on: parms.set_coeff_modulus(CoeffModulus.Create(poly_modulus_degree, [60, 40, 40, 60])). If poly_modulus_degree higher, the CoeffModulus.MaxBitCount(poly_modulus_degree) will be bigger, but the sum of [60, 40, 40, 60] should be the same or smaller than the MaxBitCount, and the size of keys and ciphers will be bigger and the delay will be higher.

In summary:
the precision of number <- CoeffModulus(like 60, 40, 30...) <- poly_modulus_degree
precision <-> speed and keys' size

from seal-python.

pandasamanvaya avatar pandasamanvaya commented on September 24, 2024

So, if I want to use constants of order 1e-5(without getting error), what kind of parameters should I use? Could you suggest some?

from seal-python.

pandasamanvaya avatar pandasamanvaya commented on September 24, 2024

I guess scale determines the amount of precision(1/scale of precision). If you use scale = 2^10, you could use numbers of order 1e-3 where as if you use scale = 2^40, you could use numbers of the order 1e-13.

from seal-python.

kumarm17 avatar kumarm17 commented on September 24, 2024

Hi @Huelse,
I tried to run https://github.com/Huelse/SEAL-Python/blob/main/examples/matrix_operations.py file after some minor changes and I am getting same error :
evaluator.multiply_plain(temp_rot, plain_diags[0], temp)
RuntimeError: result ciphertext is transparent.
matrix_operation.txt

from seal-python.

Huelse avatar Huelse commented on September 24, 2024

@Mishra1992 For security, the SEAL does not support pure zero vector, refer to is_transparent().

from seal-python.

kumarm17 avatar kumarm17 commented on September 24, 2024

Thank you so much for quick response @Huelse.

  1. Is there any way to disable it ?
  2. Since you have already added 0.00000001 so it is not pure zero vector but still getting transparent ciphertext error.
  3. Any suggestion to resolve this issue.

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.