This is a simple implementation of the GMW protocol in python. The GMW protocol is a secure multi-party computation protocol that allows multiple parties to compute a function on their inputs without revealing their inputs to each other.
- python3.8+
modify your gates in the gates.py file, and then run start.sh. The result will be printed to the console.
./start.sh <person> <mode> <0-31> [<ip of bob>] [<port>]where 0 stands for Alice and 1 stands for Bob in person arg.
c for compare (x>=y) and a for addition (mod 32) in mode arg.