openfheorg / openfhe-development

This is the development repository for the OpenFHE library. The current (stable) version is v1.2.0 (released on June 25, 2024).
BSD 2-Clause "Simplified" License
663 stars 170 forks source link

Fix EvalSumKeys generation logic in the Threshold CKKS Chebyshev Example #751

Closed caesaretos closed 2 months ago

caesaretos commented 2 months ago

There is a problem in the EvalSumKeys generation logic in the example tckks-interactive-mp-bootstrapping-Chebyshev.cpp. Replace this Line with

auto evalSumKeysJoin2 = cryptoContext->MultiAddEvalSumKeys(evalSumKeysJoin, evalSumKeysC, kp3.publicKey->GetKeyTag());

The issue was reported here: https://openfhe.discourse.group/t/bug-in-multiparty-scenario-with-evalsum/1224