Is there any standardized way to keep cashu proofs and overall mints state encrypted on relays? Imagine if your npub had some ecash balance that seamlessly follows you around any nostr app. Earn 20k sats on zap.stream, go to shopstr and buy a tshirt, no fiddling around with NWC, secrets, popups or anything. It just works. Is this already a thing? If not, any reason we can’t? @calle

Replies (8)

Gm ☕️ 🫂 🤙
PABLOF7z's avatar PABLOF7z
Is there any standardized way to keep cashu proofs and overall mints state encrypted on relays? Imagine if your npub had some ecash balance that seamlessly follows you around any nostr app. Earn 20k sats on zap.stream, go to shopstr and buy a tshirt, no fiddling around with NWC, secrets, popups or anything. It just works. Is this already a thing? If not, any reason we can’t? @calle
View quoted note →
Why? I’d say if you designate one or two relays to keep this data instead of publishing anywhere it would be pretty safe that it wouldn’t go stale I’d say let’s go with it, I’m all for simple and stupid solutions that have a chance of working. What did your events look like?
I just sent myself DB read and write ops (ecash in, ecash out) via nostr dm's and replayed them during sync. It was fun to watch, haven't progressed since then though. A wallet basically only holds ecash. It can have three states: unspent, pending (in a tx right now), and spent. Spent can be deleted. Token goes from unspent, to pending, to spent during a successful spend operation. The DB operations are crud. If the state of a token could be "flipped" in the relay's db (so that the wallet can filter for the state), a fresh sync could be very painless.
I writing want this app-specific; I would want my cashu to be available to any app I want to make it available to Plus, I wouldn’t give @sandwich that satisfaction EVER 😂😂