Lux Docs
Compliance

Compliance Framework

KYC/AML, sanctions screening, and regulatory reporting for Lux financial services

The Lux compliance stack (github.com/luxfi/compliance) provides identity verification, sanctions screening, transaction monitoring, and regulatory reporting. It is used by the CEX (ATS) and Broker services.

Regulatory Coverage

FrameworkScope
FinCEN BSACIP, CTR ($10k threshold), SAR filing
SECATS-N filing, CAT reporting, Reg D accredited investor
FINRARule 5310 best execution, OATS reporting
MiFID IIBest execution, transaction reporting (EU)
FCA 5AMLDCDD/EDD, HM Treasury sanctions (UK)
IOMFSAAML/CFT Code 2019, source of wealth/funds (Isle of Man)

Architecture

User ──► IDV Provider (Jumio/Onfido/Plaid)

         Webhook ──► KYC Service ──► Application Store

                     AML Screening ──► OFAC/UN/EU/PEP

                     Monitoring ──► Alerts ──► SAR Filing

Packages

PackagePurpose
pkg/idvIdentity verification providers (Jumio, Onfido, Plaid)
pkg/kycKYC orchestration, application lifecycle
pkg/amlSanctions screening, transaction monitoring
pkg/regulatoryMulti-jurisdiction rules (US, UK, IoM)
pkg/paymentsTravel Rule, CTR detection, stablecoin compliance
pkg/entityRegulated entity types (ATS, BD, TA, MSB)
pkg/webhookUnified webhook handler with idempotency

Tech Stack

  • Language: Go (standard library only, zero external dependencies)
  • Thread Safety: All services use sync.RWMutex
  • Test Coverage: 168 tests across 7 packages, all pass with -race

On this page