Rust SDK for the Lux blockchain. Wraps native libraries with idiomatic Rust types.
| Crate | Description |
|---|---|
lux-crypto |
Post-quantum cryptography (ML-KEM-768, ML-DSA-65) |
lux-fhe |
Fully homomorphic encryption (boolean gates, integer ops) |
lux-precompile |
EVM precompile dispatch |
lux-accel |
GPU-accelerated tensor operations (Metal, CUDA, Vulkan) |
lux-consensus-sdk |
Quasar consensus engine (Wave, FPC, Photon, Focus) |
Each crate wraps a native -sys FFI crate that lives in the corresponding Go repo:
luxcrypto-sys--luxfi/crypto/bindings/rustluxfhe-sys--luxfi/fhe/bindings/rustluxprecompile-sys--luxfi/precompile/bindings/rustlux-consensus--luxfi/consensus/pkg/rust
The SDK crates provide: error enums, Result types, safe wrappers, and documentation.
Requires the native shared libraries to be built first. See each repo for build instructions.
cargo check --workspace
cargo test --workspaceMIT