aboutsummaryrefslogtreecommitdiffstats
path: root/routes/lnurl.ts
Commit message (Collapse)AuthorAgeFilesLines
* fix lnurl description_hash mismatch when sender provides a commentAdam Soltys2026-05-171-2/+6
| | | | | | | | | | | | | | | The bolt11 description_hash is computed from the metadata JSON, which was being constructed with the sender's `comment` substituted into text/plain. Wallets verify description_hash against the metadata they received in the lnurl-pay response, so injecting the comment into the hash made the verification fail — the invoice would settle but description_hash verification would reject it as inconsistent. Keep metadata canonical ("Paying user@host") so the description_hash the wallet receives matches what they verify against. The comment is still preserved as the human-readable memo on the invoice record. Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
* feat: blocked address protection, LNURL proxy, replay timestampsAdam Soltys2026-03-271-0/+12
| | | | | | | | | | - Add lib/changeid.ts for in-process account rekeying - Block sends to addresses in redis blocked_addresses set, auto-rekey on attempt - Add created param to credit() for accurate replay timestamps - Add paid_at to replay() for correct payment dates - Add /lnurl/proxy endpoint for server-side LNURL callback fetching Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
* add LNURL-withdraw endpoints for fund-based NFC paymentsAdam Soltys2026-03-081-1/+77
| | | | Co-Authored-By: Claude Opus 4.6 <[email protected]>
* bump nodemonAdam Soltys2026-03-011-0/+1
|
* fix typescript issuesAdam Soltys2026-02-281-1/+1
|
* migrate to honoAdam Soltys2026-02-281-37/+30
|
* formattingAdam Soltys2026-02-241-14/+5
|
* consult archive for older paymentsAdam Soltys2026-01-301-2/+2
|
* rotate server keyAdam Soltys2025-09-291-3/+3
|
* only record invoice if amount is definedAdam Soltys2025-07-311-2/+4
|
* always define minSendable and maxSendableAdam Soltys2025-07-311-3/+3
|
* leave minSendable undefined if no amountAdam Soltys2025-07-311-1/+1
|
* respect null tipsAdam Soltys2025-07-191-2/+15
|
* record prompt setting for lnurl invoicesAdam Soltys2025-07-191-49/+4
|
* record lnurl invoiceAdam Soltys2025-07-161-12/+19
|
* fix lnurl logicAdam Soltys2025-07-101-1/+2
|
* handle empty amountsAdam Soltys2025-07-081-1/+1
|
* include tip in lnurlAdam Soltys2025-07-081-2/+3
|
* fix variable nameAdam Soltys2025-07-081-3/+3
|
* invoice seekAdam Soltys2025-07-081-7/+15
|
* mark self-generated invoicesAdam Soltys2025-06-231-4/+12
|
* lnurl pay endpoint for latest invoiceAdam Soltys2025-05-061-1/+41
|
* fund routesAdam Soltys2025-03-151-47/+47
|
* strip spaces from lnurlAdam Soltys2025-02-261-2/+2
|
* payment typesAdam Soltys2025-02-261-4/+11
|
* use lnurl comment if providedAdam Soltys2025-01-241-2/+2
|
* pubkey challengeAdam Soltys2025-01-091-2/+2
|
* lnurlwAdam Soltys2024-12-241-4/+47
|
* stifle lnurlp warningsAdam Soltys2024-12-181-2/+7
|
* strip equalsAdam Soltys2024-12-131-1/+1
|
* better lnurl errorAdam Soltys2024-12-061-1/+4
|
* sanitize lnurl usernameAdam Soltys2024-12-061-1/+3
|
* add pr to lnurl verify responseAdam Soltys2024-12-051-2/+2
|
* add null preimage to lnurl verify responseAdam Soltys2024-12-051-7/+7
|
* biome lintAdam Soltys2024-10-311-24/+24
|
* atomic payment reversalAdam Soltys2024-10-161-1/+2
|
* refactor nwcAdam Soltys2024-09-181-2/+2
|
* fix some ts issuesAdam Soltys2024-08-261-18/+21
|
* typescriptAdam Soltys2024-08-261-0/+135