Feat/Add Crypto Libs #3

Merged
pn merged 35 commits from feat/add-crypto-libs into main 2026-01-10 21:59:18 +00:00
Showing only changes of commit 16665cafc4 - Show all commits

View File

@@ -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 |