Skip to content

FHE examples in C, C++, Python, Go, Rust, Ruby, Elixir, Haskell, Node

License

Notifications You must be signed in to change notification settings

luxfhe/examples

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Lux FHE Examples

Real, working examples for Fully Homomorphic Encryption development.

ML Examples (ml/)

Production-ready machine learning on encrypted data:

Example Description Data
credit_scoring/ Credit risk prediction HMEQ dataset
disease_prediction/ Healthcare predictions Medical records
cifar/ Image classification CIFAR-10
federated_learning/ Distributed training -
hybrid_model/ Mixed FHE/plaintext -

Quick Start

cd ml/credit_scoring
python -m venv .venv && source .venv/bin/activate
pip install -r requirements.txt
jupyter lab CreditScoring.ipynb

Deployment Examples (deployment/)

Production deployment patterns:

Example Description
breast_cancer/ Cancer detection API
sentiment_analysis/ NLP on encrypted text
server/ FHE inference server

Blockchain Examples (blockchain/)

FHE for smart contracts:

Example Description
hardhat-template/ Solidity + FHE
react-template/ React dApp + FHE

Requirements

  • Python 3.10+
  • For ML: pip install torus-ml
  • For blockchain: Node.js 18+

Related

License

Apache 2.0

About

FHE examples in C, C++, Python, Go, Rust, Ruby, Elixir, Haskell, Node

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published