Coder Social home page Coder Social logo

mgysel / secure-multiparty-computation_compiler Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 310 KB

secure multi-party computation engine in a semi-honest (passive) adversarial setting using the Python 3 program- ming language. The SMC implementation works for generic arithmetic circuits assuming the existence of a trusted third party.

Python 97.07% TeX 2.93%

secure-multiparty-computation_compiler's Introduction

Secure Multiparty Computation Compiler

Description

In this project, we developed a SMC framework, which allows users to compute a shared expression using different operations (addition, subtraction, and multiplication), scalar values, and the participants' secrets, without having to send them to a third party to do the computation. An in-depth discussion including the threat model, implementation details, and performance evaluation can be found in SMCompiler_report.pdf.

Implementation

  • expression.py - File where we defined how to represent our expressions and handle the operations between them
  • secret_sharing.py - File where we implemented the secret sharing scheme (Additive Secret Sharing)
  • ttp.py - File with the code to generate the Beaver Triplets for the multiplication operations
  • smc_party.py - File where we run the SMC protocol
  • test_integration.py - File for the integration tests
  • test_expression.py - File where we tested the expressions and their representation
  • test_ttp.py - File to test the trusted third party (not used)
  • test_secret_sharing.py - File to test the secret sharing scheme (not used)

Run & Test

As it stands, the current way to run the framework is by creating a use-case, placing it in the test_integration.py and running the test command, in order to simulate the behavior of the framework for the given test case.

To test the framework, one needs to run the following command in the smcompiler directory:

python3 -m pytest

If the intended is just to run the integration tests, for example, then the command should be:

python3 -m pytest test_integration.py

Performance

To test the system's performance, one must be in the smcompiler directory and run the command:

python3 evaluation.py

Note: Some performance tests are heavy since they consider cases where the system is given a large number of operations/parties

References

https://github.com/spring-epfl/CS-523-public/blob/master/smcompiler/README.md

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.