Data Domains
Data domain ownership map for the DALP platform showing sources of truth, data lifecycle stages, and governance boundaries across on-chain and off-chain storage.
Purpose
Maps data ownership across DALP, identifying sources of truth, lifecycle stages, and governance boundaries.
- Doc type: Reference
- What you'll find here:
- Data domain ownership table
- Source of truth for each domain
- On-chain vs off-chain data split
- Data lifecycle and retention
- Related:
- Database — database schema and migrations
- Chain Indexer — blockchain-to-database sync
- Identity & Compliance — identity data model
Domain ownership
| Domain | Source of truth | Storage | Owner |
|---|---|---|---|
| Token balances | Blockchain (ERC-20 state) | On-chain | SMART Protocol |
| Token metadata | Blockchain (contract storage) | On-chain | SMART Protocol |
| Identity claims | Blockchain (OnchainID contracts) | On-chain | Identity system |
| Compliance rules | Blockchain (module contracts) | On-chain | Compliance engine |
| User accounts | PostgreSQL (auth_* tables) | Off-chain | Unified API (Better Auth) |
| Organizations | PostgreSQL (organisation table) | Off-chain | Unified API |
| Wallet bindings | PostgreSQL (wallet table) | Off-chain | Unified API |
| API keys | PostgreSQL (api_key table) | Off-chain | Unified API |
| Signing keys | External (HSM / DFNS / Fireblocks) | External | Key Guardian |
| Indexed events | PostgreSQL (idxr_* tables) | Off-chain (derived) | Chain Indexer |
| Feed data | PostgreSQL (feed_* tables) | Off-chain | Feeds system |
| Audit log | PostgreSQL (audit_log table) | Off-chain | Unified API |
On-chain vs off-chain split
| Characteristic | On-chain | Off-chain |
|---|---|---|
| Authoritative for | Asset state, compliance, identity | User accounts, UI state, analytics |
| Mutability | Append-only (blockchain) | Mutable (PostgreSQL) |
| Latency | Block time (2-15 seconds) | Sub-second |
| Consistency | Eventually consistent (block confirmations) | Strongly consistent (PostgreSQL ACID) |
| Retention | Permanent (blockchain) | Configurable (7+ years for financial) |
The Chain Indexer bridges these worlds: it reads blockchain events and writes derived state to PostgreSQL for fast querying. The indexed data is always reconstructible from on-chain events.
Data lifecycle
| Stage | On-chain data | Off-chain data |
|---|---|---|
| Creation | Transaction execution | API request → database write |
| Validation | Smart contract logic + compliance | Application validation + database constraints |
| Storage | Block inclusion | PostgreSQL commit |
| Retrieval | RPC query or indexed copy | Database query |
| Archival | Permanent on-chain | Backup + retention policy |
| Deletion | Not possible (immutable) | GDPR-compliant deletion for PII |
See also
- Database for schema details and migration workflow
- Chain Indexer for blockchain-to-database sync
- Identity & Compliance for identity data architecture
Deployment Topology
Architecture-level view of DALP deployment topology covering environments, runtime zones, network boundaries, and scaling constraints. Links to self-hosting guides for installation procedures.
Component Catalog
Master inventory of all DALP components organized by architectural layer: platform interfaces, infrastructure services, operational capabilities, and the on-chain SMART Protocol. Each entry links to its detailed architecture page.