GithubHelp home page GithubHelp logo

cs523-project1's Introduction

CS523-Project1

This is the repository for the project 1 of the CS-523 course

Overview

This project is splitted in two parts :
Part 1 : Secure MPC using a trusted third party for Beaver triplets generation
Part 2 : Secure MPC using homomorphic encryption for Beaver triplets generation

Main

Used only for Part 2
Syntax is as follows:
./mpc [PartyID] [Input] [CircuitID]

  • PartyID : The ID of the Party
  • Input : The Input of the party
  • CircuitID : The ID of the circuit to compute. Circuits are stored in test_circuits.go

Note that the number of party should be equal to the number of inputs of the circuits, and that all parties should be run simultaneously.

Tests

Tests works for both parts. To change parts, set the boolean trusted in mpc_test.go:28to true for Part 1, false for Part 2. The tests can be run as follows:

  • To run all tests : go test -v -run=.
  • To run a test on a specific circuit with id e.g 1 : go test -v -run=^TestEval$/^circuit1$

Benchmark

Benchmark works for both parts. To change parts, set the boolean trusted in mpc_test.go:69to true for Part 1, false for Part 2. The benchmarks can be run as follows:

  • To run all benchmarks : go test -v -bench=. -run=XXX
  • To run a benchmark on a specific circuit with id e.g 1 : go test -v -bench=^BenchmarkEval$/^circuit1$ -run=XXX It is possible that the benchmarks fails because of too many open file. It that case, run it again with the tag -benchtime=XXXmsto avoid this issue.

cs523-project1's People

Contributors

danielementary avatar

Watchers

 avatar  avatar

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.