MP-SPDZ icon indicating copy to clipboard operation
MP-SPDZ copied to clipboard

Can you provide a way to compile this project using bazelisk?

Open anyejunwang1 opened this issue 2 months ago • 2 comments

I need to use the MP-SPDZ project in a C++ project compiled with bazelisk, but the incompatible compilation method makes it difficult for me to reference the MP-SPDZ library in the project. Could you please build this project again using bazelisk so that other projects using bazelisk can use the related libraries?

anyejunwang1 avatar Oct 25 '25 05:10 anyejunwang1

Alternatively, if I want to run .mpc files in other C++ projects through socket memory calls, which dynamic libraries, static libraries, and other files should I copy?

anyejunwang1 avatar Oct 25 '25 14:10 anyejunwang1

The requirements depend on the protocol. All protocols require libSPDZ.so, which in turn includes all *.cpp files from several directories. I would suggest you run rm libSPDZ.so; make libSPDZ.so to see an up-to-date listing in the last line as the requirements might change over time. All *.o files mentioned there correspond to a *.cpp file of the same name, bar the ending. Similarly, all protocols using homomorphic encryption require libFHE.so, which consists of the code in the FHE and FHEOffline directories. Lastly, the virtual machines are built from the relevant file in the Machines directory, plus some specific requirements. For example, mascot-party.x is primarily built from Machines/mascot-party.cpp. As above, you can find out the exact requirements using rm mascot-party.x; make mascot-party.x and check the last line.

mkskeller avatar Oct 29 '25 02:10 mkskeller