Skip to content
/ mpz-play Public

A workshop to get familiar with the mpz library

Notifications You must be signed in to change notification settings

th4s/mpz-play

Repository files navigation

MPZ Play

This is a workshop to get familiar with mpz, which is a PSE library for secure multi-party computation (MPC).

Resources

Learning MPC:

MPZ library:

Getting started

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 :)

About

A workshop to get familiar with the mpz library

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages