This is a workshop to get familiar with mpz, which is a PSE library for secure multi-party computation (MPC).
Learning MPC:
MPZ library:
This repository offers some exercises to get exposed to MPC with mpz. Each of
these exercises are Rust crates, that start with a number, e.g. 00-connect
. In
each of theses crates you will find two binaries alice.rs
, bob.rs
and a
library file lib.rs
. This library file contains instructions and typically you
will need to add some code to the binaries. To complete the exercises run the
binaries and see if your code works as expected.
For example to complete lesson 00-connect
, you follow the instructions in
00-connect/src/lib.rs
. Then in two different terminals run
cd 00-connect
cargo run --bin alice
cargo run --bin bob
Since we use a TCP connection for connecting Alice
and Bob
, you can work
through the exercises together with a colleague. Then each of you only needs to
run one binary, either alice.rs
or bob.rs
, and you can connect to your
colleague's machine. This way you can do pair programming and real MPC on
different machines :)