Configuration
Security Levels
Trust Hub supports three NIST post-quantum security levels:
| Level | Signing | Key Exchange | Equivalent |
|---|
| 2 | ML-DSA-44 | ML-KEM-512 | AES-128 |
| 3 (default) | ML-DSA-65 | ML-KEM-768 | AES-192 |
| 5 | ML-DSA-87 | ML-KEM-1024 | AES-256 |
Gateway Configuration
from trusthub.gateway.config import GatewayConfig
config = GatewayConfig(
host="127.0.0.1",
port=8700,
security_level=3,
rate_limit_rpm=60,
session_ttl_seconds=3600,
gateway_org="my-gateway",
)
Environment Variables
| Variable | Default | Description |
|---|
| TRUSTHUB_SECURITY_LEVEL | 3 | Default NIST security level |
| TRUSTHUB_GATEWAY_HOST | 127.0.0.1 | Gateway bind address |
| TRUSTHUB_GATEWAY_PORT | 8700 | Gateway port |