LPsLux Proposals
P-Chain
LP-3041

Regulated Platform Architecture

Final

The module map an operator deploys under its own registrations — bank, forex, matching, broker, futures and cap table as independent services.

Category
Interface
Created
2026-08-26

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

ModuleBinaryPortFunctionRegistration the operator brings
bankbankd:8070Accounts, payments, compliance, KYCMoney transmission
forexforexd:8086FX execution, payment railsMoney transmission
dexlxd:8085Order matching, market dataMoney transmission
brokerbrokerd:8080Multi-provider order routingBroker-dealer
futuresfuturesd:8090Futures and commoditiesThe operator's own, for the contracts it lists
captablecaptabled:8075Cap table, corporate actionsTransfer agent
exchange(SPA):3000DEX frontendNone — 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:

CurrencyDomesticInternational
EURSEPA / SEPA InstantSWIFT
GBPFPS (Faster Payments)SWIFT
USDACHWire (SWIFT)
CADInteracSWIFT

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

ResourceLocation
Banking service interfaceLP-3040
Bank record model and fee scheduleLP-3042
Digital Securities StandardLP-3100
DEX core specificationLP-9000
M-Chain MPC custodyLP-7100
White-label DAO deployment patternLP-3072

Copyright (c) 2026 Lux Industries Inc. All rights reserved.

Licensed under the MIT License.