Fortro Engine
Fortro Engine is the central backend for the Sphyre ecosystem. It exposes the REST API used by Sphyre ALV, Sphyre Issuers, and Sphyre Verifier, then coordinates MongoDB persistence, IPFS storage, cryptographic operations, and Base Sepolia smart-contract calls.Runtime
Language: Rust 2021
Framework: Axum
Async runtime: Tokio
Framework: Axum
0.7.5Async runtime: Tokio
1.32.0Primary Responsibilities
DID authentication
Credential issuance
Presentation verification
Consent and blockchain anchoring
Credential issuance
Presentation verification
Consent and blockchain anchoring
Implemented Route Groups
Routes are mounted insrc/api/mod.rs under /api.
Key Endpoints
Dependencies
Project Structure
Data Model Notes
Schemas use anattributes array, not a generic fields array. Credential records include BBS signature metadata, Kyber encryption state, optional anonymous credential data, evidence attachments, extensions, IPFS references, and blockchain transaction references.
Smart Contracts
The backend integrates with the contracts infortro-contract-dev/hardhat/contracts, including CredentialRegistry, SchemaRegistry, ConsentRegistry, SSIRegistry, SSIRegistryFactory, SphyreAccessControl (AccessControl.sol), ERC2771Context, and MinimalForwarder.
Smart Contract Layer
Review contract inventory, roles, on-chain operations, and blockchain API routes.