diff --git a/MIGRATION.md b/MIGRATION.md index b60a63b..e82b60e 100644 --- a/MIGRATION.md +++ b/MIGRATION.md @@ -6,9 +6,9 @@ This document outlines the SQL schema design for the Nebula wallet's **encrypted ``` ┌─────────────────────────────────────────────────────────────────────┐ -│ NEBULA WALLET │ +│ NEBULA WALLET │ ├─────────────────────────────────────────────────────────────────────┤ -│ │ +│ │ │ ┌──────────────────────┐ ┌──────────────────────────────────┐ │ │ │ SQLite Enclave │ │ API Clients (Live Data) │ │ │ │ (Encrypted WASM) │ │ │ │ @@ -21,10 +21,10 @@ This document outlines the SQL schema design for the Nebula wallet's **encrypted │ │ • DID State │ │ • Network Status │ │ │ │ • Capability Delgs │ │ │ │ │ └──────────────────────┘ └──────────────────────────────────┘ │ -│ │ │ │ -│ │ Encrypted with │ REST/gRPC │ -│ │ WebAuthn-derived key │ │ -│ ▼ ▼ │ +│ │ │ │ +│ │ Encrypted with │ REST/gRPC │ +│ │ WebAuthn-derived key │ │ +│ ▼ ▼ │ │ ┌──────────────────────┐ ┌──────────────────────────────────┐ │ │ │ IndexedDB/OPFS │ │ Sonr Protocol / Indexers │ │ │ │ (Browser Storage) │ │ (PostgreSQL for live queries) │ │ @@ -32,8 +32,10 @@ This document outlines the SQL schema design for the Nebula wallet's **encrypted └─────────────────────────────────────────────────────────────────────┘ ``` + ### What Goes in the Enclave (SQLite) + | Data Type | Rationale | |-----------|-----------| | WebAuthn Credentials | Device authentication, never leaves device | @@ -46,6 +48,7 @@ This document outlines the SQL schema design for the Nebula wallet's **encrypted ### What Comes from APIs (NOT in SQLite) + | Data Type | Source | |-----------|--------| | Token Balances | Chain RPC / Indexer API |