LPsLux Proposals
Consensus Systems
LP-5200

AI Mining Standard

Review

Quantum-safe AI mining protocol with cross-chain Teleport integration for Lux ecosystem

Abstract

This LP defines the Lux AI Mining Standard, a quantum-safe protocol for mining AI compute rewards on the Lux L1 network using ML-DSA (FIPS 204) wallets. The protocol integrates with the Teleport bridge to enable seamless transfer of AI mining rewards to supported EVM L2 chains including Hanzo EVM (Chain ID: 36963), Zoo EVM (Chain ID: 200200), and Lux C-Chain (Chain ID: 96369).

Activation

ParameterValue
Flag stringlp2000-ai-mining
Default in codefalse until block TBD
Deployment branchv0.0.0-lp2000
Roll‑out criteriaTestnet validation complete
Back‑off planDisable via flag

Motivation

The convergence of AI and blockchain requires a native protocol for mining AI compute rewards. Current solutions lack:

  1. Quantum Safety: No protection against quantum computer attacks on mining signatures
  2. Native L1 Support: AI rewards exist only as ERC-20 tokens without native L1 integration
  3. Cross-Chain Interoperability: Fragmented reward distribution across chains
  4. Consensus Integration: No direct integration with BFT consensus for reward finality

This LP addresses these gaps by establishing a quantum-safe mining protocol at the L1 layer with native Teleport bridge integration.

Specification

1. Architecture Overview

┌─────────────────────────────────────────────────────────────────┐
│                    Hanzo Networks (L1)                          │
│  ┌─────────────┐  ┌─────────────┐  ┌──────────────────────┐    │
│  │ AI Mining   │  │ Lux        │  │ Global Reward        │    │
│  │ Nodes       │──│ Consensus  │──│ Ledger               │    │
│  │ (ML-DSA)    │  │ (BFT)      │  │ (Quantum-Safe)       │    │
│  └─────────────┘  └─────────────┘  └──────────────────────┘    │
│                          │                                      │
│                   ┌──────┴──────┐                               │
│                   │  Teleport   │                               │
│                   │  Bridge     │                               │
│                   └──────┬──────┘                               │
└──────────────────────────┼──────────────────────────────────────┘
                           │
        ┌──────────────────┼──────────────────┐
        │                  │                  │
   ┌────┴────┐       ┌────┴────┐       ┌────┴────┐
   │ Hanzo   │       │ Zoo     │       │ Lux     │
   │ EVM L2  │       │ EVM L2  │       │ C-Chain │
   │ (36963) │       │(200200) │       │ (43114) │
   └─────────┘       └─────────┘       └─────────┘

2. ML-DSA Mining Wallet

Mining wallets MUST use ML-DSA (Module-Lattice Digital Signature Algorithm) per FIPS 204:

Security LevelAlgorithmPublic Key SizeSignature Size
Level 2ML-DSA-441,312 bytes2,420 bytes
Level 3ML-DSA-651,952 bytes3,309 bytes
Level 5ML-DSA-872,592 bytes4,627 bytes

Address Derivation:

address = "0x" + hex(BLAKE3(public_key)[0:20])

Reference Implementation:

3. Global Reward Ledger

The ledger tracks all mining rewards across the network with Lux BFT consensus:

pub struct LedgerEntry {
    pub block_height: u64,      // Lux block when mined
    pub miner: Vec<u8>,         // ML-DSA public key
    pub reward: u64,            // AI tokens (atomic units)
    pub ai_hash: [u8; 32],      // BLAKE3 hash of AI work
    pub timestamp: u64,         // Unix timestamp
    pub signature: Vec<u8>,     // ML-DSA signature
}

Reference Implementation:

4. Teleport Protocol

Cross-chain transfers use the Teleport bridge with quantum-safe signatures:

pub struct TeleportTransfer {
    pub teleport_id: String,        // Unique transfer ID
    pub source_chain: ChainId,      // Always Hanzo L1
    pub destination_chain: ChainId, // Target EVM chain
    pub sender: Vec<u8>,            // ML-DSA public key
    pub recipient: String,          // EVM address (0x...)
    pub amount: u64,                // AI tokens
    pub signature: Vec<u8>,         // ML-DSA signature
    pub status: TransferStatus,
}

pub enum ChainId {
    HanzoL1,           // Native L1 mining chain
    HanzoEVM = 36963,  // Hanzo EVM L2
    ZooEVM = 200200,   // Zoo EVM L2
    LuxCChain = 96369, // Lux C-Chain
}

Reference Implementation:

5. EVM Precompile Interface

A precompile at address 0x0300 enables EVM contracts to interact with AI mining:

// SPDX-License-Identifier: MIT
pragma solidity ^0.8.20;

interface IAIMining {
    /// @notice Get mining balance for an address
    function miningBalance(address miner) external view returns (uint256);

    /// @notice Verify ML-DSA signature
    function verifyMLDSA(
        bytes calldata publicKey,
        bytes calldata message,
        bytes calldata signature
    ) external view returns (bool);

    /// @notice Claim teleported AI rewards
    function claimTeleport(bytes32 teleportId) external returns (uint256);

    /// @notice Get pending teleport transfers
    function pendingTeleports(address recipient) external view returns (bytes32[] memory);
}

Reference Implementation:

6. NVTrust Chain-Binding Double-Spend Prevention

The core mechanism preventing AI work from being claimed on multiple chains.

6.1 Design Principle

We avoid double-spend by binding each unit of AI work to a specific chain before the compute runs, and then having the GPU's confidential-compute environment sign an attested receipt that includes that chain ID.

That receipt is:

  • Unique (per device + nonce)
  • Bound to one chain (via chain_id in the attested context)
  • Signed by NVIDIA's NVTrust root

So you cannot take one chunk of work and mint it on multiple chains without re-doing the compute.

6.2 Work Context (Pre-Compute Commitment)

When a miner wants to do AI work, their node commits to a target chain:

pub struct WorkContext {
    pub chain_id: ChainId,         // HANZO / LUX / ZOO
    pub job_id: [u8; 32],          // Specific workload or block height
    pub model_hash: [u8; 32],      // Which model
    pub input_hash: [u8; 32],      // Which data / prompt
    pub device_id: [u8; 32],       // GPU identity
    pub nonce: [u8; 32],           // Unique per job
    pub timestamp: u64,            // Unix timestamp
}

This context is passed into the GPU's NVTrust enclave as job metadata. The miner has effectively said: "This work is for this chain, this job, with this model + input."

Reference Implementation:

6.3 GPU TEE Execution (NVTrust)

Inside the TEE, the GPU:

  1. Verifies the code + model hashes (no tampering)
  2. Runs the AI workload (inference / training)
  3. Creates a work receipt:
pub struct WorkReceipt {
    pub context: WorkContext,      // Includes chain_id, job_id, etc.
    pub result_hash: [u8; 32],     // Hash of the output
    pub work_metrics: WorkMetrics, // FLOPs, steps, tokens, etc.
    pub device_id: [u8; 32],       // GPU identity
}

pub struct WorkMetrics {
    pub flops: u64,                // Floating point operations
    pub tokens_processed: u64,     // For LLM inference
    pub compute_time_ms: u64,      // Execution time
    pub memory_used_mb: u64,       // Peak VRAM usage
}

The NVTrust enclave signs WorkReceipt with its attested key:

pub struct AttestedReceipt {
    pub receipt: WorkReceipt,
    pub nvtrust_signature: Vec<u8>,  // Rooted in NVIDIA hardware attestation
    pub spdm_evidence: SPDMEvidence, // SPDM measurement response
}

This is cryptographic proof that: "This exact device ran this exact workload with this exact context."

Reference Implementation:

6.4 Chain Verification and Minting

When the miner submits the receipt to a chain:

pub fn verify_and_mint(
    receipt: &AttestedReceipt,
    spent_set: &mut HashSet<[u8; 32]>,
    expected_chain_id: ChainId,
) -> Result<u64, MiningError> {
    // Step 1: Verify NVTrust signature is valid
    verify_nvtrust_signature(&receipt)?;

    // Step 2: Verify chain_id matches this chain
    if receipt.receipt.context.chain_id != expected_chain_id {
        return Err(MiningError::WrongChain);
    }

    // Step 3: Compute unique key
    let key = blake3::hash(&[
        &receipt.receipt.context.device_id[..],
        &receipt.receipt.context.nonce[..],
        &(receipt.receipt.context.chain_id as u32).to_le_bytes()[..],
    ]);

    // Step 4: Check spent set (double-spend prevention)
    if spent_set.contains(&key.into()) {
        return Err(MiningError::AlreadyMinted);
    }

    // Step 5: Mark as spent and mint
    spent_set.insert(key.into());
    let reward = calculate_reward(&receipt.receipt.work_metrics);
    Ok(reward)
}

Reference Implementation:

6.5 Multi-Chain Mining (Same GPU, No Double-Spend)

The same GPU can mine for Hanzo, Lux, Zoo, etc., but:

  • Each chain requires a separate job with a different chain_id in the NVTrust context
  • Each job produces a different attested receipt with a different (chain_id, job_id, nonce) triple
GPUJob 1Job 2Job 3
H100-001Hanzo (36963)Zoo (200200)Lux (96369)
H100-001nonce: 0x1a...nonce: 0x2b...nonce: 0x3c...
H100-001Receipt AReceipt BReceipt C

No "copy-paste" mining - you can't run one workload and cash it in on three chains.

6.6 Supported GPUs for NVTrust

GPU ModelCC SupportTrust Score
H100Full NVTrust95
H200Full NVTrust95
B100Full NVTrust + TEE-I/O100
B200Full NVTrust + TEE-I/O100
GB200Full NVTrust + TEE-I/O100
RTX PRO 6000NVTrust85
RTX 5090No CCSoftware only (60)
RTX 4090No CCSoftware only (60)

7. Consensus Integration

Mining rewards require BFT finality from Lux consensus:

  1. Miner submits AI work proof with ML-DSA signature
  2. Validators verify NVTrust attestation and chain binding
  3. Spent set checked for hash(device_id || nonce || chain_id)
  4. Reward entry added to global ledger
  5. 2-round BFT finality confirms reward
  6. Teleport bridge unlocks cross-chain transfers

Rationale

Why ML-DSA?

NIST selected ML-DSA (formerly CRYSTALS-Dilithium) as the primary post-quantum signature standard. Level 3 provides 128-bit quantum security matching current blockchain standards.

Why Teleport over Traditional Bridges?

Teleport uses native L1 finality rather than relying on external validators, providing stronger security guarantees for AI reward transfers.

Why Separate L1 Mining?

Native L1 mining enables direct consensus integration without smart contract overhead, providing faster finality and lower costs for high-frequency mining operations.

Backwards Compatibility

This LP introduces new functionality without breaking existing features:

  • Existing wallets continue to work on EVM chains
  • Legacy transactions remain valid
  • New ML-DSA addresses coexist with ECDSA addresses
  • Teleport is opt-in for cross-chain transfers

Test Cases

Test vectors are provided in the reference implementation:

cd hanzo-libs/hanzo-mining
cargo test

Key Test Cases:

  1. test_wallet_creation - ML-DSA key generation
  2. test_wallet_signing - Signature creation/verification
  3. test_ledger_operations - Reward tracking
  4. test_teleport_transfer - Cross-chain transfers
  5. test_bridge_creation - Full bridge integration

Reference Implementation

ComponentLocation
Mining Wallethanzo-mining/src/wallet.rs
Global Ledgerhanzo-mining/src/ledger.rs
EVM Integrationhanzo-mining/src/evm.rs
Bridge Protocolhanzo-mining/src/bridge.rs
Solidity Precompilelux/precompiles/AIMining.sol

Security Considerations

Quantum Safety

ML-DSA provides NIST Level 3 (128-bit) quantum security. Key sizes are larger than ECDSA but provide long-term security against quantum attacks.

Key Management

  • Secret keys are zeroized on drop using the zeroize crate
  • Wallet export uses ChaCha20Poly1305 AEAD encryption
  • Passwords derive keys via Argon2 (not yet implemented, using BLAKE3)

Teleport Security

  • All transfers require valid ML-DSA signatures
  • Destination chain verification prevents replay attacks
  • Transfer IDs are unique (BLAKE3 hash of transfer data)

Consensus Attacks

  • 69% quorum threshold prevents minority attacks
  • 2-round finality ensures reward immutability
  • Invalid AI work rejected by validators

Economic Impact

Tokenomics (Per Chain)

ParameterValueDescription
Supply Cap1,000,000,000 AI1B per chain
LP Allocation100,000,000 AI10% for liquidity seeding
Mining Allocation900,000,000 AI90% via Bitcoin schedule
Initial Price$0.10/AI96% discount from market rate
LP Depth$10,000,000Per chain at launch

Bitcoin-Aligned Halving Schedule

ParameterBitcoinAI Token
Block Time10 minutes2 seconds
Halving Interval210,000 blocks6,300,000 blocks
Halving Period~4 years~4 years (aligned)
Initial Reward50 BTC79.4 AI
Supply Cap21M BTC1B AI (per chain)

Halving Formula:

R(epoch) = 79.4 × 2^(-epoch) AI per block

Epoch Timeline:

EpochBlocksYearsReward/BlockCumulative Supply
00-6.3M0-479.4 AI500M AI
16.3M-12.6M4-839.7 AI750M AI
212.6M-18.9M8-1219.85 AI875M AI
318.9M-25.2M12-169.925 AI937.5M AI

Launch Chains (10 at Genesis)

ChainChain IDTypeDEXLP Pair
Lux C-Chain96369Native (Warp)LuxSwapAI/LUX
Hanzo EVM36963Native (Warp)HanzoSwapAI/LUX
Zoo EVM200200Native (Warp)ZooSwapAI/LUX
Ethereum1External (Teleport)Uniswap V3AI/ETH
Base8453External (Teleport)AerodromeAI/ETH
BNB Chain56External (Teleport)PancakeSwapAI/BNB
Arbitrum42161External (Teleport)CamelotAI/ETH
Optimism10External (Teleport)VelodromeAI/ETH
Polygon137External (Teleport)QuickSwapAI/MATIC
Avalanche43114External (Teleport)Trader JoeAI/AVAX

Global Supply at Launch: 10B AI (10 chains × 1B each)

Future Expansion

ChainsTotal SupplyGovernance
10 (launch)10B AISafe multi-sig (MPC)
100 chains100B AIDAO governance
1000 chains1T AICross-chain DAO

New chains added via governance vote. Each chain deploys independent AI token contract with same parameters.

Mining Rewards

Miner Economics (At Launch Price):

GPUsHash RateRevenue/HourCost/HourProfit
1 H100~1 AI/hr$0.10~$2.50-$2.40
100 H100s~100 AI/hr$10.00~$250-$240
1000 H100s~1000 AI/hr$100.00~$2,500-$2,400

Note: At launch price, mining is subsidized. As AI price appreciates toward market rate (~$2.50), profitability reaches parity.

Break-Even Analysis:

  • At $2.50/AI: Mining reaches cost parity with cloud compute
  • At $5.00/AI: 2x profitable vs cloud
  • At $10.00/AI: 4x profitable vs cloud

Cross-Chain Fees

  • Teleport transfers incur minimal bridge fees (~$1-5)
  • EVM operations use standard gas pricing
  • Precompile calls reduce gas vs pure Solidity
  • LP-0004: Quantum Resistant Cryptography Integration
  • LP-0005: Quantum Safe Wallets and Multisig Standard
  • HIP-006: Hanzo AI Mining Protocol
  • ZIP-005: Zoo AI Mining Integration

Copyright and related rights waived via CC0.