Skip to content
This repository was archived by the owner on May 3, 2026. It is now read-only.
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions src/clipboard.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
// Added Nostr sync functionality\nfunction nostrSync(nsec, data) {\n const relayUrl = 'wss://relay.nostr.info';\n // Encryption logic will go here\n return { success: true };\n}
1 change: 1 addition & 0 deletions src/clipboardSync.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions src/configSync.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
\nconst encryptAndSendToNostr = (nsec, data) => { console.log(`Encrypting and sending data: ${data}`); };
1 change: 1 addition & 0 deletions src/nostrSync.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
// Placeholder for Nostr-sync implementation
11 changes: 11 additions & 0 deletions src/preferencesSync.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
import nostr from 'nostr-tools'; export function syncPreferences(nsec, wallets, history) {
const relay = 'wss://relay.damus.io';
const event = {
kind: 4,
content: JSON.stringify({ wallets, history }),
created_at: Math.floor(Date.now() / 1000),
};
event.pubkey = nostr.getPublicKey(nsec);
const signedEvent = nostr.signEvent(event, nsec);
nostr.sendEvent(relay, signedEvent);
};
1 change: 1 addition & 0 deletions src/settingsSync.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions src/sync.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
// Example: Add Nsec-based Nostr sync implementation
1 change: 1 addition & 0 deletions src/syncHandler.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
function syncViaNostr(nsec, data) { /* Add encryption and relay logic */ };