Why Nostr? What is Njump?
2024-08-18 22:09:57

tragic on Nostr: With cashu there's always been a dilemma when sending ecash to someone: did they ...

With cashu there's always been a dilemma when sending ecash to someone: did they claim the payment?

Sure a wallet can ask the mint if a certain set of tokens were spent, but that creates a link between the sending and receiving wallet. It's a leak of information that loses you privacy.

A first solution, although maybe impractical, would be to let the mint stream the information about all the spent tokens to clients that request them (through apposite WebSocket endpoints).
So If I am a wallet and I have just sent some e-cash to someone, I can connect to the mint and "listen" until I am satisfied (until I know the e-cash was claimed).

This could put some pressure on the mint and it's not clear to me if it could be used to perform some DoS attack.

A better approach could leverage Nostr!
A mint with that advertises its associated `npub` on the `/v1/info` API endpoint could then regularly publish notes with all the information about freshly spent e-cash.

Clients would just have to query for notes with a `p` tag referencing the `npub` of the mint and look for the e-cash they just sent. Easy.
Author Public Key
npub1u07xw079lxwv24xslarh2eu4v37jtjmwvev0jyk3zjhxg2wnt56seyez97