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 /routes | |
| parent | c901c9571ff9406188a8bbb68c701ad3b21c24eb (diff) | |
| download | coinos-server-481dec5b1cfa2a085dda500ce0c390b38cb4a8b0.tar.gz coinos-server-481dec5b1cfa2a085dda500ce0c390b38cb4a8b0.zip | |
rotate server key
Diffstat (limited to 'routes')
| -rw-r--r-- | routes/lnurl.ts | 6 | ||||
| -rw-r--r-- | routes/users.ts | 6 |
2 files changed, 6 insertions, 6 deletions
diff --git a/routes/lnurl.ts b/routes/lnurl.ts index 239da2bd..729cca58 100644 --- a/routes/lnurl.ts +++ b/routes/lnurl.ts @@ -1,7 +1,7 @@ import { db, g, s } from "$lib/db"; import { generate } from "$lib/invoices"; import { err, warn } from "$lib/logging"; -import { serverPubkey } from "$lib/nostr"; +import { serverPubkey2 } from "$lib/nostr"; import { SATS, bail, fail, getInvoice, getUser } from "$lib/utils"; import { bech32 } from "bech32"; import got from "got"; @@ -82,7 +82,7 @@ export default { minSendable, maxSendable, metadata, - nostrPubkey: serverPubkey, + nostrPubkey: serverPubkey2, commentAllowed: 512, callback: `${URL}/api/lnurl/${id}`, tag: "payRequest", @@ -220,7 +220,7 @@ export default { minSendable: invoice.amount ? total : 1000, maxSendable: invoice.amount ? total : 10 * 1000 * SATS, metadata, - nostrPubkey: serverPubkey, + nostrPubkey: serverPubkey2, commentAllowed: 512, callback: `${URL}/api/lnurl/${id}`, tag: "payRequest", diff --git a/routes/users.ts b/routes/users.ts index 94deeed7..7b9a486b 100644 --- a/routes/users.ts +++ b/routes/users.ts @@ -5,7 +5,7 @@ import { requirePin } from "$lib/auth"; import { db, g, ga, s } from "$lib/db"; import { err, l, warn } from "$lib/logging"; import { mail, templates } from "$lib/mail"; -import { getNostrUser, getProfile, serverPubkey } from "$lib/nostr"; +import { getNostrUser, getProfile, serverPubkey2 } from "$lib/nostr"; import { reconcile } from "$lib/payments"; import register from "$lib/register"; import { emit } from "$lib/sockets"; @@ -899,7 +899,7 @@ export default { }), ); - app.nwc = `nostr+walletconnect://${serverPubkey}?relay=${relay}&secret=${app.secret}&lud16=${lud16}`; + app.nwc = `nostr+walletconnect://${serverPubkey2}?relay=${relay}&secret=${app.secret}&lud16=${lud16}`; app.payments = payments.filter((p) => p); res.send(app); @@ -915,7 +915,7 @@ export default { await Promise.all( apps.map(async (a) => { if (a.secret) - a.nwc = `nostr+walletconnect://${serverPubkey}?relay=${relay}&secret=${a.secret}&lud16=${lud16}`; + a.nwc = `nostr+walletconnect://${serverPubkey2}?relay=${relay}&secret=${a.secret}&lud16=${lud16}`; const pids = await db.lRange(`${a.pubkey}:payments`, 0, -1); let payments = await Promise.all( |
