Skip to content

Architecture Summary

This page is the condensed architecture view for product operators and GATE integrators.

For deeper implementation detail, see:

The Problem This Solves

Operational teams need a shared model of where decisions are made, where state is persisted, and where verification artifacts enter the lifecycle.

Why This Matters

Without a clear model, incidents are misrouted between frontend, backend, chain, and data dependencies.

Layered View

flowchart TB
  U[User wallet]
  FE[Frontend Next.js]
  BE[Backend FastAPI]
  PX[Policy and proof services]
  CH[Starknet contracts]
  DS[State stores + logs + indexers]

  U --> FE
  FE --> BE
  BE --> PX
  BE --> CH
  CH --> DS
  BE --> DS
  DS --> FE

Component Responsibilities

ComponentResponsibilityWhy it matters
FrontendUser-facing surfaces (vault, trade, brain, profile tabs)Keeps execution intent and risk context understandable
BackendOrchestration, policy checks, API composition, receipt lifecycleConverts UI intent into actionable and auditable flows
Starknet contractsFinal execution and on-chain verifiability primitivesPreserves user custody and deterministic settlement
Data/indexing servicesPosition and status reconciliationAllows users and integrators to inspect post-trade truth

Verification Is Flow-Specific

Not all routes share identical proof strictness:

  • Gate-critical flows enforce stronger pre-execution checks.
  • Advisory flows may return non-blocking risk signals.
  • Wallet-first flows rely on signed execution and downstream reconciliation.

This is intentional and should be treated as a capability model, not a single global mode.

Production And Experimental Scope

Production core

  • /agent, /profile, reputation/passport/compliance endpoints, orchestration deploy paths.

Experimental and rapidly evolving

  • selected /phase4a, /vault-live, and simulator-oriented surfaces.

Troubleshooting Ownership Map

flowchart LR
  E[Execution issue] --> A{Where failure appears}
  A -->|Wallet prompt / signing| W[Frontend + wallet context]
  A -->|Payload or policy response| B[Backend API layer]
  A -->|Tx finality / explorer state| C[Chain + contract layer]
  A -->|Position pending mismatch| D[Indexing / reconciliation]

This map is useful for runbooks, incident triage, and partner-support escalation paths.

Next: API overview | Contracts | Deploying zkde.fi

Built by Obsqra Labs