data61 / MP-SPDZ

Versatile framework for multi-party computation
Other
944 stars 280 forks source link

How to program by C++? #1503

Closed TanYuzhen closed 1 month ago

TanYuzhen commented 1 month ago

Hello author, I am a beginner in MP-SPDZ and would like to ask how to use MP-SPDZ library as a linked library using C++ language instead of Python language ending in .mpc? Is there any documentation or sample program for this? Thanks for your help.

mkskeller commented 1 month ago

This section in the documentation is the starting point for using the C++ interface: https://mp-spdz.readthedocs.io/en/latest/low-level.html Some functionality from lowest level is compiled to libSPDZ.so, but much of MP-SPDZ is template/meta-code, so you would need to create your own facilities for a linked library.