Skip to main content

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 0.7.5
Async runtime: Tokio 1.32.0

Primary Responsibilities

DID authentication
Credential issuance
Presentation verification
Consent and blockchain anchoring

Implemented Route Groups

Routes are mounted in src/api/mod.rs under /api.

Key Endpoints

Dependencies

Project Structure

Data Model Notes

Schemas use an attributes 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 in fortro-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.