docs(migration): clarify migration guide diagrams and enclave schema
This commit is contained in:
15
MIGRATION.md
15
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) │ │
|
│ │ SQLite Enclave │ │ API Clients (Live Data) │ │
|
||||||
│ │ (Encrypted WASM) │ │ │ │
|
│ │ (Encrypted WASM) │ │ │ │
|
||||||
@@ -21,10 +21,10 @@ This document outlines the SQL schema design for the Nebula wallet's **encrypted
|
|||||||
│ │ • DID State │ │ • Network Status │ │
|
│ │ • DID State │ │ • Network Status │ │
|
||||||
│ │ • Capability Delgs │ │ │ │
|
│ │ • Capability Delgs │ │ │ │
|
||||||
│ └──────────────────────┘ └──────────────────────────────────┘ │
|
│ └──────────────────────┘ └──────────────────────────────────┘ │
|
||||||
│ │ │ │
|
│ │ │ │
|
||||||
│ │ Encrypted with │ REST/gRPC │
|
│ │ Encrypted with │ REST/gRPC │
|
||||||
│ │ WebAuthn-derived key │ │
|
│ │ WebAuthn-derived key │ │
|
||||||
│ ▼ ▼ │
|
│ ▼ ▼ │
|
||||||
│ ┌──────────────────────┐ ┌──────────────────────────────────┐ │
|
│ ┌──────────────────────┐ ┌──────────────────────────────────┐ │
|
||||||
│ │ IndexedDB/OPFS │ │ Sonr Protocol / Indexers │ │
|
│ │ IndexedDB/OPFS │ │ Sonr Protocol / Indexers │ │
|
||||||
│ │ (Browser Storage) │ │ (PostgreSQL for live queries) │ │
|
│ │ (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)
|
### What Goes in the Enclave (SQLite)
|
||||||
|
|
||||||
|
|
||||||
| Data Type | Rationale |
|
| Data Type | Rationale |
|
||||||
|-----------|-----------|
|
|-----------|-----------|
|
||||||
| WebAuthn Credentials | Device authentication, never leaves device |
|
| 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)
|
### What Comes from APIs (NOT in SQLite)
|
||||||
|
|
||||||
|
|
||||||
| Data Type | Source |
|
| Data Type | Source |
|
||||||
|-----------|--------|
|
|-----------|--------|
|
||||||
| Token Balances | Chain RPC / Indexer API |
|
| Token Balances | Chain RPC / Indexer API |
|
||||||
|
|||||||
Reference in New Issue
Block a user