Repository navigation
Value: type="cashu" (ecash via NUT-18 payment requests) #798
Replies: 2 comments
|
I looked into cashu some time ago, and I really like the concept of sending payments via tokens but... as far as I know, NWC (NIP-47) has no method to pay a NUT-18 request. So the only way for an app to pay these recipients is to mint, store and send ecash itself. Then the app holds bearer tokens that are the user’s money. It has to pick or trust mints, handle backup and recovery, and resend or reclaim tokens that never arrive. I don’t want my app in that position, and I suspect most podcast app developers don’t either. Holding and moving value for users brings regulatory exposure: money transmission rules differ from country to country, and the status of an app that holds ecash for its users is far from clear. It also brings app store rules for crypto wallets, and support requests about lost funds. |
|
Fair points, and I agree an app shouldn't become a custodian just to pay a split. The proposal doesn't need that:
Until that exists, an app that wants per-minute ecash streaming has to hold a small wallet itself, as Nutcast does as a demo. I'd treat that as a reference implementation, not as what every app should do. If there's interest, I'm happy to write the NWC method up as a separate NIP proposal so the namespace side stays simple: just "this recipient also accepts ecash at this request." |
Uh oh!
There was an error while loading. Please reload this page.
Proposal:
type="cashu"for<podcast:value>(ecash payments via NUT-18 payment requests)Today a listener needs a Lightning wallet that speaks keysend or LNURL to send value. Cashu ecash makes the listener side much lighter: a wallet is a few kilobytes in a browser or app, funded once over Lightning. Ecash can already pay
lnaddressrecipients (melt through the mint), but every such payment is a Lightning payment with its own fee reserve, so per-minute streaming of small amounts gets expensive. If the recipient accepts ecash directly, there is no Lightning hop at all.The tag
type="cashu": the payment layer is Cashu ecash.method="nut18": payments are delivered to a NUT-18 payment request.valueRecipient type="paymentrequest",address= an encoded NUT-18 request (creqA…) without an amount (the app fills it in), unitsat, optionally the list of mints the recipient accepts, and a transport: Nostr (NIP-17 private message to the recipient's key) or HTTP POST.splitandfeework exactly as in the Lightning block. Nothing new for split math.memo.A feed can carry a
cashublock alongside its existinglightningblock. Apps that understand ecash use it; all other apps keep using the Lightning block, so nothing breaks. Forvalueslugs.txtthis would addcashu,nut18andpaymentrequest.Why it helps
Working implementation
Nutcast is a web player that reads both kinds of block (live demo; episode 2 of the demo show uses a
cashublock, episode 1 a classiclnaddress+nodesplit). Its "For podcasters" page turns an npub into thecreqA…request and the full XML block. It also plays real feeds withlnaddresssplits, paying them from ecash via the mint.Open questions
memo, or as a new optional field in the NUT-18 payload?type="paymentrequest"the right recipient type name, or wouldtype="nut18"be clearer?Feedback welcome, especially from app developers and podcasters already running value splits.
All reactions