ldsec / lattigo-polls-demo

25 stars 7 forks source link

PSI demo issue #4

Closed macknight closed 2 years ago

macknight commented 2 years ago

Hi, Is this PSI(private set intersection) demo? If each person input a float number, could this demo be changed to compute the sum of the numbers which are encrypted by different public key?

BR

ChristianMct commented 2 years ago

Hi,

Is this PSI(private set intersection) demo?

This demo implements a PSI, yet in a very simplistic setting where parties trust the server and the poll creator not to collude (since all poll responses are encrypted under the creator's key, this would leak the responses). Removing this assumption is possible by using the threshold schemes (e.g., lattigo/dbfv) but requires a more complex setup and decryption and was left out of the demo for now.

If each person input a float number, could this demo be changed to compute the sum of the numbers which are encrypted by different public key?

Not directly. To implement such a protocol, you would need a multi-key FHE scheme such as Chen et al.'s. We have an implementation of this scheme in Lattigo, but it is highly experimental for now and is therefore not on the main branch.

macknight commented 2 years ago

Thank you very much for your detailed reply.

BR