-
-
Notifications
You must be signed in to change notification settings - Fork 158
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
A aggregation function for an encrypted vector (add_many/multiply_many) #74
Comments
Hi @Christopher-Wang and thanks for your input! I just want to clarify your feature request, so by |
Yes. Similar to the Evaluator::multiply_many and Evaluator::add_many definitions in the SEAL 2.0 documentation. I also check and currently there is no way to encrypt a matrix therefore the matmul workaround is impossible. What steps do you think need to be followed to include that functionality? |
If what you meant is the feature I described in my last comment, it shouldn't be a big deal to implement, it just wasn't a priority, but since there is a need for that, I can take a look at it and ping you when a PR is ready, you can also help us with reviews to let us know if the API for doing those operations looks good. Does this work for you? |
I do mean the feature in your last comment. Perfect thanks! I appreciate it. |
Feature Description
A single encrypted TenSEAL vector should be able to be naively aggregated by either a sum or product.
Is your feature request related to a problem?
This would be especially useful for common operations such as dot product and euclidean distance.
What alternatives have you considered?
Currently the only known method I understand might for summation work is to perform a matrix multiplication with an identity vector which is not ideal.
Additional Context
Ideally the operation would look something like
encrypted_vec.add_many()
The text was updated successfully, but these errors were encountered: