Regulated Platform Architecture
The module map an operator deploys under its own registrations — bank, forex, matching, broker, futures and cap table as independent services.
LP-3041: Regulated Platform Architecture
Abstract
This specification defines the architecture of the Lux financial platform — banking, foreign exchange, matching and compliance as independent Go services that compose into one stack. White-label operators deploy the same images under their own registrations and brand configuration.
Lux publishes these services and holds none of those registrations. Every registration named below is one the deploying operator brings; nothing here may be read as a claim that Lux, or any Lux entity, holds one anywhere. LP-3100 draws the same line for the securities contracts these services settle against.
Architecture
Module Map
| Module | Binary | Port | Function | Registration the operator brings |
|---|---|---|---|---|
bank | bankd | :8070 | Accounts, payments, compliance, KYC | Money transmission |
forex | forexd | :8086 | FX execution, payment rails | Money transmission |
dex | lxd | :8085 | Order matching, market data | Money transmission |
broker | brokerd | :8080 | Multi-provider order routing | Broker-dealer |
futures | futuresd | :8090 | Futures and commodities | The operator's own, for the contracts it lists |
captable | captabled | :8075 | Cap table, corporate actions | Transfer agent |
exchange | (SPA) | :3000 | DEX frontend | None — the surface prepares transactions for the user's own wallet (LP-3110) |
The bank module serves the interface specified in LP-3040; the securities contracts it settles against are LP-3100.
Service Topology
┌─────────────────────────────────────────────────────┐
│ FRONTENDS │
│ exchange (DEX) bank dash admin │
├─────────────────────────────────────────────────────┤
│ PLATFORM LAYER │
│ bank — accounts, KYC, payments, compliance │
├──────────┬──────────┬──────────┬──────────┬─────────┤
│ broker │ forex │ futures │ captable │ dex │
│ equities│ FX/BaaS │ commod │ registry │ match │
├──────────┴──────────┴──────────┴──────────┴─────────┤
│ PAYMENT RAILS │
│ SEPA · FPS · ACH · SWIFT · Interac · Wire │
├─────────────────────────────────────────────────────┤
│ PROVIDER INTERFACES │
│ equities · FX · futures · transfer agency · cash │
└─────────────────────────────────────────────────────┘
The bottom row is interfaces, not counterparties. The operator brings its own providers and its own credentials for each, and this standard names none — a named counterparty in an architecture diagram reads as a relationship this repository has, and describes a deployment rather than a design. The Go interface behind each name is below.
White-Label Model
The platform is designed for white-label deployment. Each operator:
- Deploys the same container images — no code forks
- Provides their own brand config via runtime
/config.json - Holds their own regulatory licenses (ATS, BD, TA as needed)
- Uses their own provider credentials (broker keys, FX keys)
- Runs on their own infrastructure (separate Kubernetes cluster)
An operator holding SEC ATS + FINRA BD + SEC TA registrations deploys broker with their equities-provider credentials, bank with their payment-provider keys, dex for order matching, and captable for transfer agent functions. No Lux branding appears in that deployment; every customer-facing string comes from brand config. The DAO-side analogue of this pattern — brands consuming the audited contract tree without forking it — is LP-3072.
Provider Interfaces
Each module defines a Go interface that providers implement:
- broker:
Provider(16 methods),OptionsProvider(8),MarginProvider(4) - forex:
FXProvider(6 methods) — pairs, quotes, orders, positions, rates - futures:
FuturesProvider(6 methods) — contracts, quotes, orders, margin - captable:
TAProvider— issuance, transfers, corporate actions, cap table
One interface per concern is the whole point: the route contract states what the product does, the adapter states how one counterparty does it.
Payment Rail Detection
The bank module selects the payment network from currency and jurisdiction:
| Currency | Domestic | International |
|---|---|---|
| EUR | SEPA / SEPA Instant | SWIFT |
| GBP | FPS (Faster Payments) | SWIFT |
| USD | ACH | Wire (SWIFT) |
| CAD | Interac | SWIFT |
Rail selection is automatic via DetectRail(currency, senderCountry, recipientCountry).
Compliance Pipeline
Every financial operation passes through compliance checks before execution:
- KYC: account must have
kycStatus = "approved" - AML screening: transactions exceeding threshold screened via the compliance service
- Sanctions: beneficiary creation screened against sanctions lists
- PEP screening: account creation flagged for politically exposed persons
- Audit trail: all state transitions logged to an immutable audit collection
Security Model
- All secrets from KMS
- HMAC-SHA256 webhook authentication with constant-time comparison
- Atomic balance operations — database transactions prevent overdraft
- Owner-scoped API rules on every collection
- CORS origins from configuration, never hardcoded
- Immutable audit log — delete and update blocked unconditionally
Deployment
Each module publishes one image per release, tagged with its semantic version. A deployment pins a version; a floating tag never reaches a cluster, because an operator running under its own registrations has to be able to say which build it ran.
White-label deployments consume the same images with different runtime configuration:
- Brand config via
/config.json(ConfigMap or KMS) - Provider credentials via environment
- CORS origins via
CORS_ALLOWED_ORIGINS - No code changes required for white-label
Reference
| Resource | Location |
|---|---|
| Banking service interface | LP-3040 |
| Bank record model and fee schedule | LP-3042 |
| Digital Securities Standard | LP-3100 |
| DEX core specification | LP-9000 |
| M-Chain MPC custody | LP-7100 |
| White-label DAO deployment pattern | LP-3072 |
Copyright
Copyright (c) 2026 Lux Industries Inc. All rights reserved.
Licensed under the MIT License.