Platform architecture · domain flowcharts

How QuantumSpectra fits together

Fourteen domains on one backbone — accounts, custodial wallets and a SHA-256 anchor ledger. Pick a domain to see its flow, actors, endpoints, collections, integrations and live record counts. The PDF and the Markdown report are generated from the same source.

content 14d0f0ab5979384a… · anchor 0x1834bb447ff5fdafe9… · v2026.10
Legend
actor / role
process
data
decision
anchored
external / cron
output
Every domain plugs into the same account, custodial wallet, hash-anchor ledger and role model.

Identity, Wallet & Ledger backbone

Users register with a role (farmer, cooperative, public authority, inspector, health worker, collective executive, admin, public viewer…). A custodial wallet (TRY balance, carbon credits, certificates) is created at sign-up; JWT sessions ride an httpOnly cookie with a CSRF origin guard. Every consequential record — scans, lots, trades, inspections, pilot inputs, pickups, closes — is SHA-256 anchored and the ordered anchors form passport hashes anyone can recompute in the browser. The ledger, marketplace listings and portfolio optimiser (classical or IBM Quantum QAOA when a token is present) sit on top.

37 %

allowed

User / role

Register · login (JWT cookie)

Custodial wallet

CSRF origin guard · roles

Domain actions (scan, lot, pilot, case…)

anchor_hash (SHA-256)

Ledger · passport hashes

Marketplace · invest

Portfolio optimiser (QAOA | classical)

Browser re-verification (WebCrypto)

drag to pan · Ctrl + wheel to zoom
Actors
  • All roles
  • Admin (seeded)
Pages
  • /login
  • /register
  • /wallet
  • /ledger
  • /marketplace
  • /dashboard
Integrations
  • JWT + bcrypt (auth)
  • Fernet-encrypted custodial keys
  • IBM Quantum Runtime REST (optional token; simulator fallback)
  • Resend e-mail
Anchored records
  • wallet creation
  • every mint (certificate / carbon credit) → tx hash
  • ledger entries
  • all domain records via anchor_hash()
Collections
  • users (wallet.try_balance, carbon_credits)
  • login_attempts
  • certificates
  • carbon_records
  • marketplace
  • investments
  • ledger
  • quantum_jobs
Live counts
46
accounts
5
ledger entries
56
certificates
3
listings
Key endpoints
  • POST /api/auth/register · login · logout
  • GET /api/auth/me
  • GET /api/wallet
  • GET /api/ledger
  • GET/POST /api/marketplace
  • POST /api/marketplace/{id}/invest
  • POST /api/marketplace/optimize
  • GET /api/quantum/status · /jobs
  • GET /api/stats/public