aboutsummaryrefslogtreecommitdiffstats
path: root/src/lnurl.js
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2026-10-19 22:13:54 -0700
committerAdam Soltys <[email protected]>2026-10-19 22:13:54 -0700
commita0829612b8751e85f28d066fbaa0c2308a85fbda (patch)
treee9d81ffe0d37023cefbecd1bdf35cf0bf39a5e83 /src/lnurl.js
parent1a85347b0a37886e550497eab5ece05410fce923 (diff)
downloadcoinosv3-a0829612b8751e85f28d066fbaa0c2308a85fbda.tar.gz
coinosv3-a0829612b8751e85f28d066fbaa0c2308a85fbda.zip
Zaps are signed as the person zapping: the login identity (extension, bunker, passkey, Google) when there is one, else the wallet's key. They were always signed by the wallet's own key, so a signed-in person's zaps showed in stream chats and streamers' overlays under a stranger npub. Zap requests also carry created_at now (a real signer refused them without it).
Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_013ZDf1cyCQLkfjftYhymZAg
Diffstat (limited to 'src/lnurl.js')
-rw-r--r--src/lnurl.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lnurl.js b/src/lnurl.js
index 592d143..134edcf 100644
--- a/src/lnurl.js
+++ b/src/lnurl.js
@@ -132,7 +132,7 @@ export function buildZapRequest({ amountMsat, relays, lnurlBech32, recipientPk,
const addr = zapAddrOf(eventId);
if (addr) tags.push(['a', addr]);
tags.push(...momentTags(moment));
- return signFn({ kind: 9734, content: comment || '', tags });
+ return signFn({ kind: 9734, created_at: Math.floor(Date.now() / 1000), content: comment || '', tags });
}
// GET the callback for a bolt11. When zapRequest is present this is a real zap;