GitHub - luxcpp/crypto: Lux C++ cryptography library - BLS12-381 pairings, ML-DSA, ML-KEM post-quantum signatures

High-performance C++ cryptography library for the Lux Network.

Features

  • BLS12-381 - Pairing-friendly curves for threshold signatures
  • ML-DSA - Post-quantum digital signatures (CRYSTALS-Dilithium)
  • ML-KEM - Post-quantum key encapsulation (CRYSTALS-Kyber)
  • secp256k1 - Ethereum-compatible ECDSA

Installation

cmake -B build -DCMAKE_BUILD_TYPE=Release
cmake --build build
cmake --install build --prefix /usr/local

Usage

CMake

find_package(lux-crypto REQUIRED)
target_link_libraries(myapp PRIVATE lux::crypto)

pkg-config (for CGO)

export CGO_CFLAGS=$(pkg-config --cflags lux-crypto)
export CGO_LDFLAGS=$(pkg-config --libs lux-crypto)

Go Bindings

See github.com/luxfi/crypto for Go bindings.

Documentation

License

BSD-3-Clause - See LICENSE