data61 / MP-SPDZ

Versatile framework for multi-party computation
Other
925 stars 278 forks source link

A question about client-server model #767

Closed zzs0111 closed 1 year ago

zzs0111 commented 1 year ago

Hi, as the ExternalIO example, https://github.com/data61/MP-SPDZ/tree/master/ExternalIO

make bankers-bonus-client.x
./compile.py bankers_bonus 1
Scripts/setup-ssl.sh <nparties>
Scripts/setup-clients.sh 3
PLAYERS=<nparties> Scripts/<protocol>.sh bankers_bonus-1 &
./bankers-bonus-client.x 0 <nparties> 100 0 &
./bankers-bonus-client.x 1 <nparties> 200 0 &
./bankers-bonus-client.x 2 <nparties> 50 1

I think in this example, the clients send their data which is masked by the random number, but there is a protocol, such as Scripts/shamir.sh. I want to know when the clients data are shared by the masked way, what does shamir secret sharing do in the example? Thank you!

mkskeller commented 1 year ago

With Shamir secret sharing, the mask is generated as secret randomness as in this paper: https://eprint.iacr.org/2021/833

zzs0111 commented 1 year ago

Thank you.