Max operation for 2 encrypted numbers
Nobody has claimed this yet.
Assessment
- Difficulty
- 5/5
- Estimated time
- Over a week
- Newbie friendliness
- 25/100
- Issue type
- Feature
- Clarity
- Needs clarification
- Activity status
- Stale
- Domain
- cryptography
Research direction
Start by reproducing the CKKSVector pow() call shown in the issue and compare it with the supported integer exponent signature. Read the homomorphic operation interfaces involved in CKKSVector and determine what change, if any, would be needed to support this max calculation. Done means the requested operation has a documented, tested path or the limitation is clearly documented.
Written by the indexing model from the issue text.
Description
How to calculate the max of two homomorphically encrypted numbers.
If 'a' and 'b' are two numbers, then I can find max using the below
x = (a + b) * 0.5
y =(a - b) * 0.5
z = sqrt(y * y)
As sqrt function is not supported, I tried converting it to power
z = (y * y) power (0.5)
But I get an error.
TypeError: pow(): incompatible function arguments. The following argument types are supported:
1. (self: _tenseal_cpp.CKKSVector, arg0: int) -> _tenseal_cpp.CKKSVector
Invoked with: <_tenseal_cpp.CKKSVector object at 0x0000012E7741AE68>, 0.5
Is there any way to solve this?

- Dominant language
- C++
- Stars
- 1k
- Forks
- 175
- Avg merge
- 6d 12h
- Merged PRs (30d)
- 5
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from OpenMined/TenSEAL
-
Difficulty 4/5 3-5 days Newbie friendliness 42/100
-
Type: Question :grey_question:
Difficulty 4/5 3-5 days Newbie friendliness 30/100
-
Type: Question :grey_question:
Difficulty 5/5 Over a week Newbie friendliness 25/100
-
Type: Question :grey_question:
Difficulty 4/5 3-5 days Newbie friendliness 25/100
-
Type: Improvement :chart_with_upwards_trend:
Difficulty 5/5 Over a week Newbie friendliness 25/100
All issues in OpenMined/TenSEAL
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 86/100
-
Sensor initialization takes very long when `--initial-sim-time` is set to current UNIX timestamp Open
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
gazebosim/gz-sensors#662 · 1 comment ·
-
enhancement
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
-
comp-datalake
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
ClickHouse/ClickHouse#121222 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
LadybirdBrowser/ladybird#12123 ·