Skip to content
@luxcpp

LUX C++

High performance C++ libraries for Lux Network

Lux C++ 🔧

High-Performance C++ Libraries for Lux Network

Native C++ implementations for cryptography, FHE, and blockchain components with maximum performance.

🏗️ Architecture

┌─────────────────────────────────────────────────────────────────┐
│                      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             │      │
│  └───────────────────────────────────────────────────────┘      │
└─────────────────────────────────────────────────────────────────┘

📦 Repositories

Core Libraries

Repository Description Status
liblux Core Lux library ✅ Stable
libluxfhe FHE operations ✅ Stable
libluxcrypto Cryptographic primitives ✅ Stable
luxvm Virtual machine 🚧 Beta

Acceleration

Repository Description Status
luxaccel GPU acceleration ✅ Stable
luxntt NTT implementations ✅ Stable
luxfft FFT implementations ✅ Stable

Bindings

Repository Description Status
luxpy Python bindings ✅ Stable
luxrs Rust bindings ✅ Stable
luxgo Go bindings (CGO) ✅ Stable

🚀 Quick Start

Build from Source

git clone https://github.com/luxcpp/liblux
cd liblux
mkdir build && cd build
cmake .. -DCMAKE_BUILD_TYPE=Release
make -j$(nproc)
sudo make install

Use in CMake Project

find_package(luxfhe REQUIRED)
target_link_libraries(myapp luxfhe::luxfhe)

C Example

#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);

C++ Example

#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

🔧 Build Requirements

  • CMake 3.20+
  • C++20 compiler (GCC 12+, Clang 15+, MSVC 2022+)
  • Optional: CUDA 12+, ROCm 5+, Metal

🔗 Related Organizations

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

📄 License

Apache 2.0 - See individual repositories for details.


Part of the Lux Network ecosystem

Popular repositories Loading

  1. gpu gpu Public

    Forked from ml-explore/mlx

    Lux GPU: An array framework for Apple and NVIDIA silicon.

    C++ 1

  2. fhe fhe Public

    Forked from openfheorg/openfhe-development

    This is the repository for the Lux FHE library. The current version is 1.4.2 (released on October 20, 2025).

    C++

  3. http http Public

    Forked from drogonframework/drogon

    Lux HTTP: A C++14/17/20 based HTTP web application framework running on Linux/macOS/Unix/Windows

    C++

  4. grpc grpc Public

    Forked from grpc/grpc

    C++ based gRPC (C++, Python, Ruby, Objective-C, PHP, C#)

    C++

  5. lattice lattice Public

    GPU-accelerated lattice cryptography library (C++)

    Go

  6. crypto crypto Public

    Lux C++ cryptography library - BLS12-381 pairings, ML-DSA, ML-KEM post-quantum signatures

    Objective-C++

Repositories

Showing 10 of 12 repositories

People

This organization has no public members. You must be a member to see who’s a part of this organization.

Top languages

Loading…

Most used topics

Loading…