Comments (7)
@Mishra1992 disable it by passing -DSEAL_THROW_ON_TRANSPARENT_CIPHERTEXT=OFF
when configuring SEAL through CMake, or evaluate in pure ciphertext.
from seal-python.
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.
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.
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.
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.
@Mishra1992 For security, the SEAL does not support pure zero vector, refer to is_transparent().
from seal-python.
Thank you so much for quick response @Huelse.
- Is there any way to disable it ?
- Since you have already added 0.00000001 so it is not pure zero vector but still getting transparent ciphertext error.
- Any suggestion to resolve this issue.
from seal-python.
Related Issues (20)
- ValueError: step count too large HOT 3
- 请问不支持整数编码吗? HOT 7
- "relinearize_inplace" doesn‘t work HOT 1
- Problem recreating 5_CKKS_Basics.py HOT 1
- How to calculate Polynomial Multiplication? HOT 10
- TypeError: cannot pickle 'seal.Ciphertext' object HOT 4
- encrypted1 and encrypted2 parameter mismatch HOT 7
- Not found the seal lib file, check the `SEAL/build/lib` HOT 14
- AttributeError: module 'seal' has no attribute 'EncryptionContext' HOT 2
- NameError: name 'EncryptionParameters' is not defined HOT 1
- Multiplication Depth analysis HOT 3
- LNK2001 with LNK1120: 88 unresolved externals
- seal-python docs HOT 3
- how to conda install after build HOT 1
- IntegerEncoder HOT 1
- 为什么样例文件夹中没有ckks方案的例子呢?如何快速上手此库呢? HOT 1
- 'seal.Ciphertext' object attribute 'scale' is read-only HOT 5
- Logistic Regression over Encrypted Data with BFV Scheme HOT 6
- How to get the coefficient of ciphertext? HOT 5
- I/O Error when trying to decrypt a loaded cipher text HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from seal-python.