Comments (8)
Sorry for the reply late, I'm not sure what your code is, you mean encoder = IntegerEncoder(context)
?
And FractionalEncoder
does not exist in the wrapper.
from seal-python.
If you want to encode fractional values, please refer to tests/4_ckks_basics.py
.
from seal-python.
Thanks for your reply. I need to encode both integer and fractional values. I am using encoder = IntegerEncoder(context)
for encoding the integers value. Is there any other encoder exist in BFV scheme to encode fractional values. Because I need both type of encoders in the same file.
from seal-python.
Actually I wanted to divide the encrypted values by 2. As division is not supported in the SEAL library. So, I was going to multiply 0.5
with the encrypted value. But I am unable to encode 0.5
as I only know about Integer Encoder.
Is there any other encoder exist in BFV Scheme to encode float values?
from seal-python.
You can not mixed-use these two kinds of the scheme, they are encoded in different ways, refer to the C++ code's note.
from seal-python.
No way, consider the ckks scheme or multiply the divisor and dividend 10000 or more times.
from seal-python.
Okay. Btw, I was trying to send the encrypted list of Ciphertext
Object from client to server through sockets in python. And I am using Pickle.dumps
to encode it into bytes but getting the following error. Is there any other way to encode this Ciphertext
object into bytes as we can only send bytes like object through sockets in python. I have tried Json, base64, pickle but nothing is working.
from seal-python.
For some reason, we can't directly pickle the Ciphertext in SEAL-3.4.5, we talked in #28, but you can use cipher.save('filename')
to save the keys or ciphers to the native.
And the pickle function in SEAL-3.3.2 works well.
from seal-python.
Related Issues (20)
- 请问不支持整数编码吗? 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
- Encountered problems during setup HOT 2
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.