data61 / MP-SPDZ

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

Is there an SDK for python to call? #187

Closed cow-123 closed 3 years ago

cow-123 commented 3 years ago

Hello,

I find that currently use mp-spdz by only the way of running command lines. Is there an SDK for python to call some api to complete a mpc job? In addition,if I encapsulate an SDK, and the network communication need be handled by Python instead C++. Can you give me some suggestions?

Thank you!

mkskeller commented 3 years ago

You can see Scripts/direct_compilation_example.py for an example on how to produce bytecode without invoking compile.py. However, you will still need to invoke the virtual machine machine from the command-line. Of course you can always integrate the command-line call in some Python script, but I'm not sure if that would be beneficial. Going further is beyond the current scope of the project. In particular, I consider handing network communication back to Python too involved for the resources currently available. Furthermore, that might come at a considerable runtime cost because multi-party computation heavily relies on network communication.