Source Code

Complete source code reference for all Lux Network repositories

Source Code Reference

All Lux Network software is open source, developed in the open on GitHub. This section provides comprehensive documentation of every repository in the ecosystem.

Repository Overview

RepositoryLanguageDescriptionLines of Code
luxfi/nodeGoCore blockchain node, all VMs500K+
luxfi/dexGoDEX matching engine50K+
luxfi/consensusGoConsensus engines (Chain, DAG, PQ)80K+
luxfi/bridgeTypeScriptBridge application and UI40K+
luxfi/thresholdGoThreshold cryptography, MPC60K+
luxfi/cryptoGoCryptographic primitives45K+
luxfi/standardSoliditySmart contract standards30K+
luxfi/sdkGoMulti-language SDKs25K+
luxfi/warpGoCross-chain messaging15K+

Organization Structure

github.com/luxfi/
├── node/           # Core blockchain node
│   ├── vms/        # Virtual machines (Platform, Exchange, Bridge, etc.)
│   ├── chains/     # Chain management
│   ├── network/    # P2P networking
│   └── database/   # Storage layer
├── consensus/      # Consensus engines
│   ├── core/       # Core consensus logic
│   ├── engine/     # Engine implementations
│   └── ai/         # AI-enhanced consensus
├── dex/            # DEX implementation
│   ├── pkg/lx/     # Matching engine
│   ├── cmd/        # CLI tools
│   └── pkg/api/    # API server
├── bridge/         # Bridge application
│   ├── app/        # React frontend
│   └── contracts/  # Bridge contracts
├── threshold/      # MPC cryptography
│   ├── protocols/  # LSS, CMP, Ringtail
│   └── pkg/        # Core libraries
├── crypto/         # Crypto primitives
│   ├── bls/        # BLS signatures
│   ├── ringtail/   # Post-quantum
│   └── secp256k1/  # ECDSA
├── standard/       # Smart contracts
│   ├── contracts/  # Solidity source
│   └── deploy/     # Deployment scripts
├── sdk/            # Client SDKs
│   └── various/    # Go, TS, Python, Rust
└── warp/           # Cross-chain messaging
    ├── message.go  # Message types
    └── precompile/ # EVM precompiles

Core Infrastructure

Applications

Libraries

Build Requirements

Go Projects

# Required: Go 1.23+
go version  # Should show go1.23.x or higher

# Build any Go project
cd <repo>
go build ./...
go test ./...

TypeScript Projects

# Required: Node 20+, pnpm
node --version  # Should show v20.x or higher
pnpm --version  # Should show 8.x or higher

# Build
pnpm install
pnpm build

Solidity Projects

# Required: Foundry
curl -L https://foundry.paradigm.xyz | bash
foundryup

# Build
forge build
forge test

Test Coverage

All repositories maintain high test coverage:

RepositoryCoverageCI Status
node89.8%Passing
consensus92.1%Passing
dex100%Passing
threshold94.3%Passing
crypto96.7%Passing

License

All Lux Network repositories are licensed under permissive open source licenses:

  • Core Infrastructure: Business Source License 1.1 (BSL)
  • Libraries and SDKs: MIT License
  • Smart Contracts: MIT License

See individual repository LICENSE files for details.

Contributing

We welcome contributions to all repositories. See Contributing Guide for:

  • Code style guidelines
  • Pull request process
  • Code review requirements
  • Testing standards

Security

Security issues should be reported privately:

  • Email: [email protected]
  • Bug Bounty: Active program with rewards up to $100,000
  • Audit Reports: Available in each repository's audits/ directory

Support

  • GitHub Issues: File bugs and feature requests
  • Discord: Real-time developer chat
  • Documentation: https://docs.lux.network