GithubHelp home page GithubHelp logo

wzjin2017 / fhe-fed Goto Github PK

View Code? Open in Web Editor NEW

This project forked from tanmayghai18/he-encryption-shelfi

2.0 0.0 0.0 292.53 MB

Shell 0.07% C++ 50.46% Python 27.85% C 1.90% Makefile 9.93% CMake 6.30% Batchfile 0.38% Dockerfile 0.08% Jupyter Notebook 3.03% TypeScript 0.01%

fhe-fed's Introduction

FHE-Based FedAvg

Secure FedAvg Functionality using Fully Homomorphic Encryption (CKKS)

Dependencies (tested in Ubuntu)

Using Docker env with Dockerfile in this repo or install all dependencies yourself as bellow:

  • PALISADE: a lattice-based homomorphic encryption library in C++. Follow the instructions on https://gitlab.com/palisade/palisade-release to download, compile, and install the library. Make sure to run make install in the user-created \build directory for a complete installation.

  • pybind-11: pip install pybind11, make sure to have have python3 and cmake already installed.

  • Clang: install clang and set it as the default compiler

palisade_pybind folder contains the implementation of weighted average operation with python bindings.

To Run After Self-Installing Dependencies

go to the palisade_pybind/SHELFI_FHE/src folder and run pip install ../

Tests/Examples as wella as the pybind11 binding code are located in the ../pythonApi directory (relative to dir. above) and can be run by simply running:

python3 ../pythonApi/[example].py

fhe-fed's People

Contributors

hamzahsaleem avatar tanmayghai18 avatar wzjin2017 avatar

Stargazers

Yuhang Yao 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.