@calle have there been proposals to address Cashu mints by nostr pubkey instead of DNS based address? API commands would be sent over Nostr. I'm even thinking double ratchet could be suitable for this, providing forward secrecy for past API calls πŸ€” I'd also like to have that on npub.cash so incoming lightning txs would show up instantly from the nostr subscription.

Replies (10)

Yes, we did experiment with this. Back when NWS (nostr web services) was introduced. None of the HTTP-over-nostr standards have ever stuck though, I wish they did. IMO a cool idea. We're currently adding OHTTP to Cashu for IP privacy.
Arjen's avatar
Arjen 4 months ago
Mints could use NoDNS to become unruggable. It requires very little config on the Mint's side and clients can choose wether they use NoDNS or legacy DNS. View quoted note β†’
Run the mint on localhost > Use ContextVM to wrap its api > You have a mint addressable by pubkey and accessible through nostr. All calls use ephemeral events and are gift wrapped in the case of encryption
It would be cool to have nostr bindings for the nutshell mint. Similar to https/rest api bindings using Fastapi - it could be done something like nostr/NWC. FWIW I am seeing the emergence of a decentralized messaging bus architecture using nostr - this would be a cool project to test it out.
↑