8-Layer Architecture
The platform implements the Device-Centric Trust Ledger architecture with eight layers:
| Layer | Role |
|---|---|
| 1. User Device Layer | Primary authority; encryption, local decisions, offline operation |
| 2. Local Trust Vault | Device-only sensitive data; AES-256, hardware secure enclave |
| 3. Local Event Ledger Cache | Local events for Zakat, donations, document sharing, etc. |
| 4. Secure Sync and Reconciliation | Event batching, signatures, conflict detection; no raw sensitive data |
| 5. Backend Verification Layer | Verifier and coordinator; validates signatures and Shariah rules |
| 6. Domain Microservices Layer | Identity, Zakat, Charity Verification, Marketplace, Vendor Verification, Barcode Verification, Matrimonial (match tokens only), Messaging Relay, Hidayat Forum, Women Consultation, Document Vault |
| 7. Global Integrity Ledger | Private, append-only, hash-chained; integrity proofs only |
| 8. Governance and Audit | Admin actions signed and ledger-recorded; observability |
Components
- Frontend: React Native + Web
- Backend: Node.js / FastAPI (verification and coordination)
- Microservices: Identity Service, Zakat Service, Charity Verification Service, Marketplace Service, Vendor Verification Service, Barcode Verification Service, Matrimonial Service (match token generation only), Messaging Relay (encrypted transport only, no persistence), Hidayat Forum Service, Women Consultation Service, Document Vault Service
- Storage: Distributed Content Storage (private IPFS or encrypted object storage with hash addressing)
- Database: PostgreSQL, Redis (operational data)
- Analytics: Elasticsearch, Kibana
