LUX C++

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. Forked from drogonframework/drogon

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

    C++

  4. Forked from grpc/grpc

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

    C++

  5. GPU-accelerated lattice cryptography library (C++)

    Go

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

    Objective-C++

Repositories

Showing 10 of 15 repositories

  • gpu Public Forked from ml-explore/mlx

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

    luxcpp/gpu’s past year of commit activity

    C++

    1

    BSD-3-Clause

    1,777 0 0

    Updated Apr 7, 2026

  • luxcpp/evm’s past year of commit activity

    C++ 0 Apache-2.0

    358 0 0

    Updated Apr 6, 2026

  • evmc Public

    EVMC - Ethereum Client-VM Connector API (fork of ipsilon/evmc)

    luxcpp/evmc’s past year of commit activity

    0 0

    0 0

    Updated Apr 5, 2026

  • accel Public

    Lux GPU-accelerated cryptography library (NTT, TFHE, BLS, ML-KEM, MSM)

    luxcpp/accel’s past year of commit activity

    C++ 0 0

    0 0

    Updated Mar 12, 2026

  • lux-gpu Public

    Lux GPU core - static library for GPU compute abstraction (linked into libluxaccel)

    luxcpp/lux-gpu’s past year of commit activity

    C++ 0 0

    0 0

    Updated Mar 12, 2026

  • session Public

    Session storage server - C++ implementation with GPU acceleration for post-quantum secure messaging

    luxcpp/session’s past year of commit activity

    C++ 0 MIT 0

    0 0

    Updated Jan 29, 2026

  • papers Public

    C++ kernels, GPU acceleration, and optimization research

    luxcpp/papers’s past year of commit activity

    0 0

    0 0

    Updated Jan 26, 2026

  • .github Public

    Lux C++ organization profile

    luxcpp/.github’s past year of commit activity

    0 0

    0 0

    Updated Jan 25, 2026

  • luxcpp/luxcpp.github.io’s past year of commit activity

    HTML 0 0

    0 0

    Updated Jan 23, 2026

  • webgpu Public

    WebGPU backend for GPU acceleration (Dawn + gpu.cpp)

    luxcpp/webgpu’s past year of commit activity

    WGSL 0 0

    0 0

    Updated Jan 10, 2026