Configuration

Security Levels

Trust Hub supports three NIST post-quantum security levels:

LevelSigningKey ExchangeEquivalent
2ML-DSA-44ML-KEM-512AES-128
3 (default)ML-DSA-65ML-KEM-768AES-192
5ML-DSA-87ML-KEM-1024AES-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

VariableDefaultDescription
TRUSTHUB_SECURITY_LEVEL3Default NIST security level
TRUSTHUB_GATEWAY_HOST127.0.0.1Gateway bind address
TRUSTHUB_GATEWAY_PORT8700Gateway port