LuukJonker / smpc

GNU General Public License v3.0
0 stars 0 forks source link

Fix: streamline the interface for running protocol parties distributedly #29

Open BasJansw opened 1 month ago

BasJansw commented 1 month ago

Currently when a user wants to run the protocol they need to do the following:

  1. initialise each ProtocolParty with an address and call set_protocol_parties on the protocol.
  2. Durring the initialisation provide which party is a "listening socket" (i.e. which party is localy running and should start a listen thread to listen for incomming connections.
  3. set the running party of the protocol.

Especialy the second and third step seem to have overlap. The system should have a slight redesign which could remove these steps. Idealy the new system would need the following steps:

  1. Initialise each party with an address
  2. set the protocol parties

with the rest being inferered by SMPCbox itself.