Multi-language FHE examples
Multi-language examples for the Lux FHE (Fully Homomorphic Encryption) ecosystem.
| Language | Directory | Status | Use Case |
|---|---|---|---|
| C | c/ | ✅ Full | Embedded systems, native libs |
| C++ | cpp/ | ✅ Full | High-performance apps |
| Python | python/ | ✅ Full | ML, data science, agents |
| Go | go/ | ✅ Full | Backend services, MPC |
| Rust | rust/ | ✅ Full | Crypto, WASM, performance |
| Ruby | ruby/ | 🚧 Beta | Web apps, scripts |
| Elixir | elixir/ | 🚧 Beta | Distributed systems |
| Haskell | haskell/ | 🚧 Beta | Formal verification |
| Node.js | node/ | ✅ Full | Web, serverless, agents |
pip install luxfhe
python python/basic.py
cd go
go run main.go
cd rust
cargo run
cd node
npm install
npx tsx basic.ts
cd c
make
./fhe_demo
Every language includes a basic example demonstrating:
See python/private_ml.py:
See python/private_agents.py and node/private_agents.ts:
┌─────────────────────────────────────────────────────────────────┐
│ Your Application │
├─────────────────────────────────────────────────────────────────┤
│ ┌────────────────────────────────────────────────────────┐ │
│ │ Language Bindings (Python, Go, Rust, Node, etc.) │ │
│ └────────────────────────────────────────────────────────┘ │
│ │ │
│ ┌────────────────────────────────────────────────────────┐ │
│ │ Lux FHE Compiler (LLVM) │ │
│ │ github.com/luxfi/fhe-compiler │ │
│ └────────────────────────────────────────────────────────┘ │
│ │ │
│ ┌─────────────┬─────────────┬─────────────┬──────────────┐ │
│ │ Torus │ Torus-ML │ Torus-NTT │ Torus-FFT │ │
│ │ (Runtime) │ (ML) │ (Accel) │ (Accel) │ │
│ └─────────────┴─────────────┴─────────────┴──────────────┘ │
│ │ │
│ ┌────────────────────────────────────────────────────────┐ │
│ │ Core: github.com/luxfi/fhe + lattice │ │
│ └────────────────────────────────────────────────────────┘ │
└─────────────────────────────────────────────────────────────────┘
Apache 2.0 - See LICENSE.
Built by Lux Network & Hanzo AI