nvflare.app_opt.psi.dh_psi.dh_psi_server module

class PSIServer(items: List[str], fpr: float = 1e-09)[source]

Bases: object

Class to represent the psi server in a two-party client, server PSI model.

Parameters:
process_request(client_request_msg) str[source]

Returns the corresponding response for the client to compute the private set intersection.

Parameters:

client_request_msg (Request) – The client request serialized string

Returns:

The server response serialized str

Return type:

response (Response)

setup(client_items_size: int)[source]

Return the psi setup

Parameters:

client_items_size (int) – The length of the client items

Returns:

The server setup protobuf serialize string

Return type:

setup (ServerSetup)