Giter VIP home page Giter VIP logo

mpc-framework's Introduction

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=.

mpc-framework's People

Contributors

pro7ech avatar s-chtl avatar sinemsav avatar yvgny avatar

Stargazers

 avatar

Forkers

somecookie

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.