encryptogroup / MOTION

An efficient, user-friendly, modular, and extensible framework for mixed-protocol secure multi-party computation with two or more parties
MIT License
85 stars 40 forks source link

add n-party millionaires' problem example #2

Closed TKussel closed 3 years ago

TKussel commented 3 years ago

I added an n-party millionair´s problem example based on an unpublished 2-party version authored by @dd23. Two points need mention:

  1. If comparison in src/examples/millionairs_problem/common/millionair.cpp:62 is used for both following Mux operations, the program deadlocks. This is why I had to duplicate the comparison.
  2. I had to create an explicitly typed temporary ShareWrapper& in src/examples/millionairs_problem/common/millionair.cpp:70 to avoid a wrong template type deduction.
Oleksandr-Tkachenko commented 3 years ago

Thanks for the nice example @TKussel!