diff options
| author | Adam Soltys <[email protected]> | 2025-09-29 21:47:18 -0700 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2025-09-29 21:50:57 -0700 |
| commit | 481dec5b1cfa2a085dda500ce0c390b38cb4a8b0 (patch) | |
| tree | 892efd033af9e889ca60cb816183deb0f2e8c2ef /lib/notifications.ts | |
| parent | c901c9571ff9406188a8bbb68c701ad3b21c24eb (diff) | |
| download | coinos-server-481dec5b1cfa2a085dda500ce0c390b38cb4a8b0.tar.gz coinos-server-481dec5b1cfa2a085dda500ce0c390b38cb4a8b0.zip | |
rotate server key
Diffstat (limited to 'lib/notifications.ts')
| -rw-r--r-- | lib/notifications.ts | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/notifications.ts b/lib/notifications.ts index d5b4f73f..31175916 100644 --- a/lib/notifications.ts +++ b/lib/notifications.ts @@ -4,7 +4,7 @@ import ln from "$lib/ln"; import { err, l, warn } from "$lib/logging"; import { mail, templates } from "$lib/mail"; import mqtt from "$lib/mqtt"; -import { publish, serverSecret } from "$lib/nostr"; +import { publish, serverSecret2 } from "$lib/nostr"; import { emit } from "$lib/sockets"; import { f, fiat, fmt, getUser, link, nada, t } from "$lib/utils"; import { hexToBytes } from "@noble/hashes/utils"; @@ -108,7 +108,7 @@ export const nwcNotify = async (p) => { notification, }); - const content = await nip04.encrypt(serverSecret, pubkey, payload); + const content = await nip04.encrypt(serverSecret2, pubkey, payload); const unsigned = { content, @@ -117,7 +117,7 @@ export const nwcNotify = async (p) => { created_at: Math.floor(Date.now() / 1000), }; - const event = finalizeEvent(unsigned, hexToBytes(serverSecret)); + const event = finalizeEvent(unsigned, hexToBytes(serverSecret2)); publish(event).catch(nada); } |
