LuxDA Conformance Test Suite
LuxDA Conformance Test Suite specification for LuxDA Bus
Abstract
This LP defines the conformance test suite for LuxDA Bus implementations, including wire format test vectors and simulation harnesses.
Motivation
This specification formalizes the component design, ensuring consistent implementation across the LuxDA ecosystem.
Specification
1. Test Categories
| Category | LPs Covered | Test Count |
|---|---|---|
| Header Format | 011 | 50 |
| Block Format | 012 | 30 |
| Relay Protocol | 020-022 | 40 |
| DA API | 030-033 | 60 |
| Storage | 040-042 | 40 |
| Chat Protocol | 060-063 | 80 |
| TFHE | 070-075 | 50 |
| Tokenomics | 080-082 | 20 |
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
Rationale
The design follows established patterns in the LuxDA architecture, prioritizing simplicity, security, and interoperability.
Backwards Compatibility
This specification introduces new functionality and does not modify existing protocols. It is fully backwards compatible with existing implementations.
Security Considerations
Implementations must validate all inputs, enforce access controls, and follow the security guidelines established in the LuxDA Bus specification.