Private Web Payments with Cashu (and Nostr)
summary
A minimal web tip flow is built that mints eCash via a public mint and delivers tokens over Nostr: it uses CashuTS wallet to request a mint quote (testnet auto-pays after ~2s), subscribes to the mint websocket (on_mint_quote_paid), calls wallet.mint_proofs to produce proofs, encodes them as a Cashu token and publishes them as a Nostr encrypted DM (NIP-17) to a target npub. Demo works live; caveat: quote persistence is required to avoid lost payments with real mints.
AI-written summary · about
chapters (9)
- 0:00Private web payments intro
- 2:49Bitcoin donations problem
- 6:23Cashu and Nostr solution
- 11:23Setting up the project and dependencies
- 15:17Cashu wallet
- 18:27Lightning invoice quote
- 25:08Payment confirmation
- 32:53Send e-cash via Nostr
- 39:03Final demo








