High-Performance C++ Libraries for Lux Network
Native C++ implementations for cryptography, FHE, and blockchain components with maximum performance.
┌─────────────────────────────────────────────────────────────────┐
│ Lux C++ Stack │
├─────────────────────────────────────────────────────────────────┤
│ ┌─────────────┬─────────────┬─────────────┬─────────────┐ │
│ │ liblux │ libluxfhe │ libluxcrypto│ luxvm │ │
│ │ (Core) │ (FHE) │ (Crypto) │ (VM) │ │
│ └─────────────┴─────────────┴─────────────┴─────────────┘ │
│ │ │
│ ┌───────────────────────────────────────────────────────┐ │
│ │ LLVM-based Compilation │ │
│ │ Python • Rust • Go • Ruby • Elixir │ │
│ └───────────────────────────────────────────────────────┘ │
│ │ │
│ ┌───────────────────────────────────────────────────────┐ │
│ │ Hardware Acceleration │ │
│ │ CUDA • ROCm • Metal • AVX-512 • NEON │ │
│ └───────────────────────────────────────────────────────┘ │
└─────────────────────────────────────────────────────────────────┘
| Repository | Description | Status |
|---|---|---|
| liblux | Core Lux library | ✅ Stable |
| libluxfhe | FHE operations | ✅ Stable |
| libluxcrypto | Cryptographic primitives | ✅ Stable |
| luxvm | Virtual machine | 🚧 Beta |
| Repository | Description | Status |
|---|---|---|
| luxaccel | GPU acceleration | ✅ Stable |
| luxntt | NTT implementations | ✅ Stable |
| luxfft | FFT implementations | ✅ Stable |
| Repository | Description | Status |
|---|---|---|
| luxpy | Python bindings | ✅ Stable |
| luxrs | Rust bindings | ✅ Stable |
| luxgo | Go bindings (CGO) | ✅ Stable |
git clone https://github.com/luxcpp/liblux
cd liblux
mkdir build && cd build
cmake .. -DCMAKE_BUILD_TYPE=Release
make -j$(nproc)
sudo make installfind_package(luxfhe REQUIRED)
target_link_libraries(myapp luxfhe::luxfhe)#include <luxfhe.h>
luxfhe_context_t* ctx = luxfhe_init();
luxfhe_keygen(ctx);
luxfhe_ciphertext_t* ct = luxfhe_encrypt_u64(ctx, 42);
// Compute on encrypted data...
luxfhe_destroy(ctx);#include <luxfhe.hpp>
auto ctx = luxfhe::Context::create();
ctx->keygen();
auto ct = ctx->encrypt(42);
auto result = ct + ctx->encrypt(8);
std::cout << ctx->decrypt<uint64_t>(result); // 50- CMake 3.20+
- C++20 compiler (GCC 12+, Clang 15+, MSVC 2022+)
- Optional: CUDA 12+, ROCm 5+, Metal
| Organization | Focus | Link |
|---|---|---|
| Lux C++ | C++ implementations | github.com/luxcpp |
| Lux Network | Go implementations | github.com/luxfi |
| Lux FHE | Docs & examples | github.com/luxfhe |
| Hanzo AI | AI infrastructure | github.com/hanzoai |
Apache 2.0 - See individual repositories for details.
Part of the Lux Network ecosystem