From 4a0e13cbd8099accd9e594a96b59ae4dcc68872a Mon Sep 17 00:00:00 2001 From: Joel Klabo Date: Tue, 10 Mar 2026 09:13:46 -0700 Subject: [PATCH] Add Nostr sync functionality using nsec for user preferences --- src/nostrSync.js | 1 + 1 file changed, 1 insertion(+) create mode 100644 src/nostrSync.js diff --git a/src/nostrSync.js b/src/nostrSync.js new file mode 100644 index 0000000..a83f5d4 --- /dev/null +++ b/src/nostrSync.js @@ -0,0 +1 @@ +// Add Nostr sync logic\nconst nostrSync = () => {\n const nsec = getNsecFromClipboard();\n const payload = JSON.stringify(loadUserData());\n const encrypted = encryptPayload(nsec, payload);\n publishToNostrRelay(encrypted, ['wss://relay1', 'wss://relay2']);\n};\naddSyncButton('Sync via NOSTR', nostrSync);