Skip to content

Architecture Overview

Product Perspective

HALAL SNS Platform follows the Device-Centric Trust Ledger architecture. It is a distributed system composed of eight layers:

  1. User Device Layer — Primary authority: encryption, local decisions, proof verification, offline operation, barcode scanning, consent enforcement
  2. Local Trust Vault — Sensitive data stored only on device (AES-256, hardware secure enclave, user-controlled deletion)
  3. Local Event Ledger Cache — Every important action creates a local event (e.g. Zakat calculation, donation intent, document shared)
  4. Secure Sync and Reconciliation Layer — Event batching, signature verification, conflict detection; no raw sensitive data transmitted
  5. Backend Verification Layer — Verifies device signatures, validates schemas, applies Shariah governance; acts as verifier, not data owner
  6. Domain Microservices Layer — Stateless, ledger-aware services
  7. Global Integrity Ledger — Private, append-only, hash-chained; records integrity proofs, not personal data
  8. 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).

8-Layer Device-Centric Trust Architecture

HALAL SNS Platform Documentation - Phase 1