aboutsummaryrefslogtreecommitdiffstats
path: root/routes/info.ts
Commit message (Collapse)AuthorAgeFilesLines
* ecash: redeem tokens by melting to the user's own invoiceAdam Soltys2026-09-161-4/+0
| | | | | | | | | | | Redeeming ecash is now a plain NUT-05 melt into a Lightning invoice owned by the redeeming user, credited by the regular lightning listener. Drop the house proof pool and its lock, the /mint and /melt routes, and the special-casing of a mint account in NWC and payment routing. Tokens are decoded against the mint's keyset list so short v1 ids resolve, and an empty keyset list is never cached. Co-Authored-By: Claude Fable 5.1 <[email protected]>
* ecash: make claims work against the v1 keyset mintAdam Soltys2026-09-141-6/+3
| | | | | | | | | | | | | | | cashu-ts 2.9.0 only derives v0 keyset ids, so CashuWallet rejected the mint's current keyset and receive() could never run. Build the wallet from keys preloaded off our own mint instead of verifying, decode tokens with the keysets (2.9.0 shortens v1 ids in the tokens it encodes, and won't expand them otherwise), and treat an unreadable house-pool value as empty rather than throwing — the pool key had been found holding a bare integer, which surfaced as "n.startsWith is not a function" on every redeem. The pool write is awaited so a dropped set can't strand freshly swapped proofs. Co-Authored-By: Claude Fable 5.1 <[email protected]> Claude-Session: https://claude.ai/code/session_0166Ci2XdCair1B9ych7w8dq
* health checkAdam Soltys2026-02-061-0/+7
|
* remove total user balancesAdam Soltys2025-03-281-8/+7
|
* migrate info endpointAdam Soltys2024-11-221-1/+1
|
* cash balanceAdam Soltys2024-11-061-7/+13
|
* biome lintAdam Soltys2024-10-311-2/+2
|
* typescriptAdam Soltys2024-08-261-0/+32