LPsLux Proposals
Research
LP-6499

LuxDA Conformance Test Suite

Draft

LuxDA Conformance Test Suite specification for LuxDA Bus

Category
Core
Created
2026-01-02

Abstract

This LP defines the conformance test suite for LuxDA Bus implementations, including wire format test vectors and simulation harnesses.

Specification

1. Test Categories

CategoryLPs CoveredTest Count
Header Format01150
Block Format01230
Relay Protocol020-02240
DA API030-03360
Storage040-04240
Chat Protocol060-06380
TFHE070-07550
Tokenomics080-08220

2. Wire Format Vectors

{
  "header_format_v1": [
    {
      "description": "minimal valid header",
      "input": {
        "namespaceId": "0x0000000000000000000000000000000000000001",
        "seq": 1,
        "timestamp": 1704067200000,
        "blobCommitment": "0x0000...",
        "blobLen": 0
      },
      "expectedBytes": "0x01000000...",
      "expectedHash": "0xabcd..."
    }
  ],
  "mls_welcome_v1": [...],
  "tfhe_sidecar_v1": [...]
}

3. Simulation Harnesses

type SimulationConfig struct {
    // Network topology
    NumNodes     int
    NumRelays    int
    NumDAOps     int

    // Behavior
    MessageRate  int  // per second
    BlobSizes    []int
    FailureRate  float64

    // Duration
    Duration     time.Duration
}

type SimulationResult struct {
    MessagesDelivered int
    AverageLatency    time.Duration
    DASuccess         float64
    Errors            []SimError
}

4. Interoperability Tests

interop_matrix:
  - implementations: [go-luxda, rust-luxda, ts-luxda]
    tests:
      - header_encoding
      - relay_gossip
      - da_dispersal
      - mls_welcome
      - tfhe_encrypt

5. Test Execution

# Run all conformance tests
lux-test conformance --suite all

# Run specific LP tests
lux-test conformance --lp 011

# Run with specific implementation
lux-test conformance --impl go-luxda

# Generate test report
lux-test conformance --report json > results.json

6. Certification

Implementations passing all tests receive certification:

LuxDA Bus Conformance Certificate
Implementation: go-luxda v1.0.0
Date: 2026-01-02
Tests Passed: 370/370
Version: LP-6499 v1.0.0

LP-6499 v1.0.0 - 2026-01-02