Skip to main content

System Architecture

Sphyre is a multi-application SSI platform built around a Rust backend, three user-facing web applications, MongoDB, IPFS, and EVM smart contracts on Base Sepolia.

Components

Smart Contracts

Contract inventory, registry operations, roles, and Fortro Engine blockchain routes.

Backend Route Topology

fortro-engine/src/api/mod.rs mounts these groups:
The wallet mount merges wallet.rs, credential_request.rs, and presentation_request.rs, so holder credential requests and holder presentation approvals live under /api/wallet.

Credential Issuance Flow

Presentation Verification Flow

Storage Model

MongoDB stores users, issuers, verifiers, schemas, templates, credentials, credential requests, presentation requests, presentations, consents, wallet activities, QR records, and supporting challenge/nonce records. Credential records include:

Blockchain Layer

The contract workspace contains registries and helpers used by backend blockchain routes:
The active API group is /api/blockchain; /api/blockchain-legacy remains mounted for older flows. Active blockchain routes include:
SSIRegistry is the aggregate contract used by the Rust blockchain client. It composes credential, schema, consent, DID, role, and metadata operations behind the deployed registry address.