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);