Giter Site home page Giter Site logo

cyckun / aby3 Goto Github PK

View Code? Open in Web Editor NEW

This project forked from ladnir/aby3

0.0 0.0 0.0 6.03 MB

A Three Party MPC framework for Machine learning and Databases

License: MIT License

CMake 0.02% C++ 2.85% C 0.01% PowerShell 0.01% Makefile 0.01% TeX 96.98% Perl 0.09% HTML 0.03% Shell 0.01%

aby3's Introduction

ABY 3 and Applications

Introduction

This library provides the semi-honest implementation of ABY 3 and Fast Database Joins for Secret Shared Data.

The repo includes the following application:

  • Linear Regression (training/inference)
  • Logistic Regression (training/inference)
  • Database Inner, Left and Full Joins
  • Database Union
  • Set Cardinality
  • Threat Log Comparison (see Section 5)
  • ERIC Application (see Section 5)

A tutorial can be found here. It includes a description of how to use the API and a discussion at the end on how the framework is implemented.

Warning

This codebase should NOT be considered fully secure. It has not had a security review and there are still several security related issues that have not been fully implemented. Only use this casebase as a proof-of-concept or to benchmark the perfromance. Future work is required for this implementation to be considered secure.

Moreover, some features have not been fully developed and contains bugs. For example, the task scheduler sometime fails. This is a known issue.

Install

The library is cross platform and has been tested on Windows and Linux. The dependencies are:

Windows

  1. Clone and build libOTe via cmake . -DENABLE_CIRCUITS=ON.
  2. git clone https://github.com/ladnir/aby3.git
  3. cd C:\
  4. mkdir libs
  5. Download Eigen to C:\libs\eigen.
  6. git clone https://github.com/Naios/function2.git to C:\libs\function2.

Open aby3 folder in visual studio and build it (via cmake). Note, you can place Eigen and function2 in a different location and update the aby3 cmake files to reference this location.

To see all the command line options, execute the program

frontend

Linux / Mac

In short, this will build the project

git clone --recursive https://github.com/osu-crypto/libOTe.git
cd libOTe/cryptoTools/thirdparty/linux
bash boost.get
cd ../../..
cmake . -DENABLE_CIRCUITS=ON
make -j
cd ../
git clone https://github.com/ladnir/aby3.git
cd aby3/thirdparty/linux
bash eigen.get
bash function2.get
cd ../..
cmake .
make -j

To see all the command line options, execute the program

frontend

Note: On windows the linking paths follow a similar pattern.

Help

Contact Peter Rindal [email protected] for any assistance on building or running the library.

Citing

Spread the word!

@misc{aby3,
    author = {Peter Rindal},
    title = {{The ABY3 Framework for Machine Learning and Database Operations.}},
    howpublished = {\url{https://github.com/ladnir/aby3}},
}

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.