aboutsummaryrefslogtreecommitdiffstats
path: root/lib/nostr.ts
Commit message (Collapse)AuthorAgeFilesLines
* lnurl: fetch user-supplied URLs through the SSRF guard, relay only protocol ↵Adam Soltys2026-11-131-1/+9
| | | | | | | | | | | | | fields Lightning address sends (pay() and POST /send/<lnaddr>) now validate the name and domain and fetch through safeGot instead of plain got. Zap receipt relays from the zap request must resolve to public hosts. The LNURL decode and proxy routes return only LNURL protocol fields instead of whatever JSON the upstream sent, and the proxy logs failures rate-limited with a generic error to the client. Also blocks the 172.42.0.0/16 docker range. Co-Authored-By: Claude Opus 5.5 <[email protected]>
* bolt12 zaps: pay offers, NWC pay/receive, per-user offers, NIP-44Adam Soltys2026-07-301-1/+23
| | | | | | | | | | | | | | | | - sendLightning fetches an invoice from lno1 offers (payer_note passthrough for NIP-177 zap intents) and pays it through the existing bolt12 path - NWC: new nwc#2 pay/receive methods (BIP-321 URIs, payer proofs stubbed until CLN 26.06 createproof), nip44_v2 alongside nip04 with per-request scheme detection, dual 23196/23197 notifications, 13194 refreshed when its content or encryption tag goes stale - standing per-user bolt12 offer via GET /offer; incoming bolt12 payments record invreq_payer_note as memo - parse/fetchinvoice routes handle offers; zap display parses kind 9736 receipts (amount tag + embedded intent) and drops a call to a sync() helper that never existed Co-Authored-By: Claude Fable 5 <[email protected]>
* stop republishing primal eventsAdam Soltys2026-03-181-2/+0
|
* remove logsAdam Soltys2026-03-171-3/+1
|
* use bytes for nostr toolsAdam Soltys2026-03-131-4/+4
|
* rotate server keyAdam Soltys2025-09-291-2/+7
|
* nwc notificationsAdam Soltys2025-02-111-3/+5
|
* default app on registerAdam Soltys2025-02-111-4/+4
|
* always publish to our relayAdam Soltys2025-02-101-1/+2
|
* fix P tag in zap receiptAdam Soltys2025-02-041-1/+1
|
* nostr workAdam Soltys2025-01-281-9/+21
|
* stringify followsAdam Soltys2025-01-291-2/+3
|
* unified event endpointAdam Soltys2025-01-231-7/+13
|
* followsAdam Soltys2025-01-231-5/+14
|
* notes and stuffAdam Soltys2025-01-211-5/+33
|
* nostr threadsAdam Soltys2025-01-201-1/+36
|
* send zaps for internal paymentsAdam Soltys2025-01-171-1/+1
|
* zap endpointsAdam Soltys2025-01-161-28/+13
|
* use strfry scanAdam Soltys2025-01-141-42/+15
|
* remove salt and cipherAdam Soltys2025-01-071-2/+2
|
* handle zaps asynchronouslyAdam Soltys2025-01-061-44/+48
|
* ecash requestsAdam Soltys2024-11-211-3/+2
|
* biome lintAdam Soltys2024-10-311-45/+45
|
* check relays for profileAdam Soltys2024-10-141-7/+6
|
* default followsAdam Soltys2024-10-141-2/+2
|
* cache countAdam Soltys2024-10-131-5/+6
|
* request loggingAdam Soltys2024-10-131-54/+53
|
* check relay tagsAdam Soltys2024-10-101-0/+1
|
* check for eventAdam Soltys2024-10-101-4/+5
|
* follow countsAdam Soltys2024-10-101-8/+32
|
* 2s maxwaitAdam Soltys2024-10-101-13/+40
|
* followsAdam Soltys2024-10-101-7/+32
|
* use primal cacheAdam Soltys2024-10-101-5/+5
|
* nostr revamp wipAdam Soltys2024-10-101-206/+49
|
* wip socket communicationAdam Soltys2024-10-101-13/+13
|
* fake zap receipt for internalAdam Soltys2024-10-011-2/+7
|
* default optsAdam Soltys2024-10-011-7/+6
|
* use hex encoded pubkeyAdam Soltys2024-09-251-2/+1
|
* refactor nwcAdam Soltys2024-09-181-102/+5
|
* pass invoice for internalAdam Soltys2024-09-171-7/+9
|
* internal paymentsAdam Soltys2024-09-161-21/+35
|
* get_infoAdam Soltys2024-09-161-21/+37
|
* lower maxfeeAdam Soltys2024-09-171-1/+1
|
* fix kindAdam Soltys2024-09-171-4/+5
|
* finalize responseAdam Soltys2024-09-161-43/+47
|
* encode pubkeyAdam Soltys2024-09-171-1/+6
|
* poll for payment successAdam Soltys2024-09-161-3/+18
|
* nwcAdam Soltys2024-09-161-9/+44
|
* cashu dev branchAdam Soltys2024-09-031-73/+72
|
* typescriptAdam Soltys2024-08-261-0/+280