This is the implementation for a simulation of an electronic road pricing scheme which uses Multi-Party Computation.
- Compile and install MP-SPDZ for your platform under the
mpspdz
directory. - mpc.py should be in your mp-spdz installation directory under
Programs/Source
- Run
./compile_mpc.sh
.- You may need to edit the compile script depending on which arithmetic domain your protocol requires.
A single run of the MPC can be completed using the example inputs in mpspdz/Player-Data
- Have the IO-VNBD dataset in the same directory as the
mpspdz
folder - Start
mpc_service.py
- In another terminal run
agent.py
- MPC output will be recorded in
data-export
in the format<lat> <long> <price> <distance>