feat: NIP-IA identity archival (relay backend + desktop) (#733)

Signed-off-by: tlongwell-block <109685178+tlongwell-block@users.noreply.github.com>
This commit is contained in:
tlongwell-block
2026-05-23 12:03:38 -04:00
committed by GitHub
parent 4278eb5202
commit 79399d9b8e
20 changed files with 1996 additions and 23 deletions
+12
View File
@@ -341,3 +341,15 @@ CREATE TABLE IF NOT EXISTS relay_members (
);
CREATE INDEX IF NOT EXISTS idx_relay_members_role ON relay_members(role);
-- ── Archived identities (NIP-IA) ──────────────────────────────────────────────
CREATE TABLE IF NOT EXISTS archived_identities (
pubkey TEXT PRIMARY KEY,
consent_path TEXT NOT NULL CHECK (consent_path IN ('self', 'owner', 'admin')),
actor TEXT NOT NULL,
reason TEXT,
replaced_by TEXT,
request_event_id TEXT NOT NULL,
archived_at TIMESTAMPTZ NOT NULL DEFAULT now()
);