Skip to content

Secure Multi-Party Computation Framework

Notifications You must be signed in to change notification settings

yvgny/MPC-Framework

 
 

Repository files navigation

MPC Framework

Unit tests

A multi-party computation framework written in Go using the lattigo library. It provides computation of arbitrary circuit over N parties in a semi-honest (passive) adversarial setting. The computations are done without trusted thrid party, using BFV fully homomorphic encryption scheme to generate an arbitrary number of Beaver triplets.

Build

Clone the repo and compile using the go compiler:

go build

Usage

The application can be given a circuit ID to show an example of how a computation is done. The implemented circuits are listed in test_circuits.go:

./mpc -id 1

It's also possible to disable the decentralized generation of beaver triplets using the flag -c. Instead, the triplet will be generated locally and given to each peer as parameters:

./mpc -c -id 7

Testing

The whole test suite can be run using go test. Otherwise, each test circuit can be executed using the following command :

go test -v -run=ˆTestEval$/ˆcircuitX$

where X is replaced by the circuit ID of a circuit present in test_circuits.go.

Similarly, the benchmarks can be run with the command:

go test -run=XXX -bench=.

Releases

No releases published

Packages

No packages published

Languages

  • Go 100.0%