Architecture Overview
Product Perspective
HALAL SNS Platform follows the Device-Centric Trust Ledger architecture. It is a distributed system composed of eight layers:
- User Device Layer — Primary authority: encryption, local decisions, proof verification, offline operation, barcode scanning, consent enforcement
- Local Trust Vault — Sensitive data stored only on device (AES-256, hardware secure enclave, user-controlled deletion)
- Local Event Ledger Cache — Every important action creates a local event (e.g. Zakat calculation, donation intent, document shared)
- Secure Sync and Reconciliation Layer — Event batching, signature verification, conflict detection; no raw sensitive data transmitted
- Backend Verification Layer — Verifies device signatures, validates schemas, applies Shariah governance; acts as verifier, not data owner
- Domain Microservices Layer — Stateless, ledger-aware services
- Global Integrity Ledger — Private, append-only, hash-chained; records integrity proofs, not personal data
- Governance, Observability and Audit Layer — Admin actions signed and ledger-recorded; system health and audit exports
Additionally: Proof Engine (verifiable proofs), Trust Score Engine, Distributed Content Storage (private IPFS or encrypted object storage).
